From 6228c186d7e71a495b45b16bfad60f85bdbc5041 Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sat, 22 Feb 2025 23:10:17 +0800 Subject: [PATCH] :bug: Hotfix sql issue --- pkg/internal/services/posts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/internal/services/posts.go b/pkg/internal/services/posts.go index 6cea249..09bfeab 100644 --- a/pkg/internal/services/posts.go +++ b/pkg/internal/services/posts.go @@ -173,8 +173,8 @@ func FilterPostWithUserContext(c *fiber.Ctx, tx *gorm.DB, user *authm.Account) * "(visibility = ? AND publisher_id IN ?) OR "+ "(visibility = ? AND ?) OR "+ "(visibility = ? AND NOT ?))", - AllVisibility, self, + AllVisibility, FriendsVisibility, allowlist, SelectedVisibility,