add: finish ui rewrite

This commit is contained in:
trisua 2025-06-01 12:25:33 -04:00
parent e9846016e6
commit 5dec98d698
119 changed files with 8776 additions and 9350 deletions

View file

@ -1,6 +1,6 @@
[package]
name = "tetratto-core"
version = "4.0.0"
version = "4.5.0"
edition = "2024"
[features]

View file

@ -280,14 +280,11 @@ impl DataManager {
continue;
}
if ua1.id != ua.id {
if ua1.id != ua.id && !ua1.permissions.check(FinePermission::MANAGE_POSTS) {
if let Some(is_following) =
seen_user_follow_statuses.get(&(ua.id, ua1.id))
{
if !is_following
&& ua.id != ua1.id
&& !ua1.permissions.check(FinePermission::MANAGE_POSTS)
{
if !is_following && ua.id != ua1.id {
private_post_replying!(post, replying_posts, ua1, self);
}
} else {
@ -295,7 +292,6 @@ impl DataManager {
.get_userfollow_by_initiator_receiver(ua.id, ua1.id)
.await
.is_err()
&& !ua1.permissions.check(FinePermission::MANAGE_POSTS)
&& ua.id != ua1.id
{
// post owner is not following us