diff --git a/pkg/internal/services/posts.go b/pkg/internal/services/posts.go index 73ea9de..7d3aad1 100644 --- a/pkg/internal/services/posts.go +++ b/pkg/internal/services/posts.go @@ -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,