summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorJimmy Praet <jimmy.praet@telenet.be>2022-06-23 11:50:37 +0200
committerGitHub <noreply@github.com>2022-06-23 11:50:37 +0200
commitb8cfd4605f685ce63a5d551c5c929df5c0e49081 (patch)
tree6a336141f2e9316b86bbb3f36f79e32fb2b80d42 /routers
parent3ba09103a4bd35f6e24eecbc85658bdbf404092f (diff)
downloadgitea-b8cfd4605f685ce63a5d551c5c929df5c0e49081.tar.gz
gitea-b8cfd4605f685ce63a5d551c5c929df5c0e49081.zip
Respect setting.UI.FeedPagingNum (#20094)
Fixes #20080
Diffstat (limited to 'routers')
-rw-r--r--routers/web/user/home.go1
-rw-r--r--routers/web/user/profile.go1
2 files changed, 2 insertions, 0 deletions
diff --git a/routers/web/user/home.go b/routers/web/user/home.go
index 7fe80a2a4b..698117e957 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 dd5804cd42..609f3242c6 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)