⚗️ Testing with the new post listing v2
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user