fix: don't show posts from banned users ever
This commit is contained in:
parent
741fe1c986
commit
03480d32db
2 changed files with 22 additions and 0 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue