🐛 Try to fix visibility

This commit is contained in:
LittleSheep 2025-02-22 22:19:50 +08:00
parent a3cb407d89
commit e35171ab81

View File

@ -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,