🐛 Fix creators center won't get post in realm

This commit is contained in:
LittleSheep 2024-02-11 13:59:48 +08:00
parent 3a0daab641
commit a1c94919f7

View File

@ -64,8 +64,6 @@ func listOwnPost(c *fiber.Ctx) error {
if realmId > 0 { if realmId > 0 {
tx = tx.Where(&models.Post{RealmID: lo.ToPtr(uint(realmId))}) tx = tx.Where(&models.Post{RealmID: lo.ToPtr(uint(realmId))})
} else {
tx = tx.Where("realm_id IS NULL")
} }
if len(c.Query("category")) > 0 { if len(c.Query("category")) > 0 {