🐛 Fix realm-related fetch

This commit is contained in:
2025-02-22 12:54:27 +08:00
parent 4b89474534
commit a15a0d1c11
4 changed files with 20 additions and 14 deletions

View File

@@ -20,7 +20,7 @@ func getWhatsNew(c *fiber.Ctx) error {
}
tx := services.FilterPostDraft(database.C)
tx = services.FilterPostWithUserContext(tx, &user)
tx = services.FilterPostWithUserContext(tx, &user, len(c.Query("realm")) > 0)
tx = tx.Where("id > ?", pivot)