🐛 Try to fix visibility
This commit is contained in:
parent
a3cb407d89
commit
e35171ab81
@ -154,12 +154,11 @@ func FilterPostWithUserContext(c *fiber.Ctx, tx *gorm.DB, user *authm.Account) *
|
||||
}
|
||||
|
||||
tx = tx.Where(
|
||||
"publisher_id = ? OR visibility != ? OR "+
|
||||
"publisher_id = ? OR "+
|
||||
"(visibility = ? AND publisher_id IN ?) OR "+
|
||||
"(visibility = ? AND ?) OR "+
|
||||
"(visibility = ? AND NOT ?)",
|
||||
user.ID,
|
||||
NoneVisibility,
|
||||
FriendsVisibility,
|
||||
allowlist,
|
||||
SelectedVisibility,
|
||||
|
Loading…
x
Reference in New Issue
Block a user