From e6831b18cee743d4010cdd742fe73a49e454acbe Mon Sep 17 00:00:00 2001 From: Jimmy Praet Date: Wed, 22 Jun 2022 23:47:23 +0200 Subject: [PATCH] Respect setting.UI.FeedPagingNum Fixes #20080 --- routers/web/user/home.go | 1 + routers/web/user/profile.go | 1 + 2 files changed, 2 insertions(+) diff --git a/routers/web/user/home.go b/routers/web/user/home.go index 7fe80a2a4ba4f..698117e9571fb 100644 --- a/routers/web/user/home.go +++ b/routers/web/user/home.go @@ -141,6 +141,7 @@ func Dashboard(ctx *context.Context) { OnlyPerformedBy: false, IncludeDeleted: false, Date: ctx.FormString("date"), + ListOptions: db.ListOptions{PageSize: setting.UI.FeedPagingNum}, }) if err != nil { ctx.ServerError("GetFeeds", err) diff --git a/routers/web/user/profile.go b/routers/web/user/profile.go index dd5804cd42d5c..609f3242c65e2 100644 --- a/routers/web/user/profile.go +++ b/routers/web/user/profile.go @@ -188,6 +188,7 @@ func Profile(ctx *context.Context) { OnlyPerformedBy: true, IncludeDeleted: false, Date: ctx.FormString("date"), + ListOptions: db.ListOptions{PageSize: setting.UI.FeedPagingNum}, }) if err != nil { ctx.ServerError("GetFeeds", err)