From a1c94919f7626c7c4009423bca9274bf328ca68b Mon Sep 17 00:00:00 2001 From: LittleSheep Date: Sun, 11 Feb 2024 13:59:48 +0800 Subject: [PATCH] :bug: Fix creators center won't get post in realm --- pkg/server/creators_api.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/pkg/server/creators_api.go b/pkg/server/creators_api.go index 47f2fbe..21f53fb 100644 --- a/pkg/server/creators_api.go +++ b/pkg/server/creators_api.go @@ -64,8 +64,6 @@ func listOwnPost(c *fiber.Ctx) error { if realmId > 0 { tx = tx.Where(&models.Post{RealmID: lo.ToPtr(uint(realmId))}) - } else { - tx = tx.Where("realm_id IS NULL") } if len(c.Query("category")) > 0 {