Post channel modes

This commit is contained in:
2025-02-22 13:29:42 +08:00
parent be1beb713c
commit a3cb407d89
4 changed files with 34 additions and 10 deletions

View File

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