⚗️ Testing with the new post listing v2

This commit is contained in:
2025-03-29 22:38:43 +08:00
parent 7a7d57c0d7
commit 3cd102046a
10 changed files with 220 additions and 21 deletions

View File

@ -11,7 +11,7 @@ import (
)
func listPostReplies(c *fiber.Ctx) error {
take := c.QueryInt("take", 0)
take := c.QueryInt("take", 10)
offset := c.QueryInt("offset", 0)
tx := database.C
@ -59,7 +59,7 @@ func listPostReplies(c *fiber.Ctx) error {
}
func listPostFeaturedReply(c *fiber.Ctx) error {
take := c.QueryInt("take", 0)
take := c.QueryInt("take", 10)
take = max(1, min(take, 3))
var userId *uint