Skip to content

Commit e4f50bf

Browse files
committed
feed: honor client's limit param.
1 parent 91a3103 commit e4f50bf

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

api/v1_users_feed.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,7 @@ func (app *ApiServer) v1UsersFeed(c *fiber.Ctx) error {
100100
rows, err := app.pool.Query(c.Context(), sql, pgx.NamedArgs{
101101
"userId": c.Locals("userId"),
102102
"before": time.Now(),
103-
// "limit": c.Query("limit", "50"),
104-
"limit": 40,
103+
"limit": c.Query("limit", "50"),
105104
"offset": c.Query("offset", "0"),
106105
"filter": c.Query("filter", "all"), // original, repost
107106
})

0 commit comments

Comments
 (0)