fix: don't show posts from banned users ever

This commit is contained in:
trisua 2025-05-16 21:42:14 -04:00
parent 741fe1c986
commit 03480d32db
2 changed files with 22 additions and 0 deletions

View file

@ -198,6 +198,10 @@ impl DataManager {
} else {
let ua = self.get_user_by_id(owner).await?;
if ua.permissions.check_banned() {
continue;
}
// check relationship
if ua.settings.private_profile {
// if someone were to look for places to optimize memory usage,
@ -304,6 +308,10 @@ impl DataManager {
} else {
let ua = self.get_user_by_id(owner).await?;
if ua.permissions.check_banned() {
continue;
}
// check relationship
if ua.settings.private_profile && ua.id != user_id {
if user_id == 0 {