From 05464ac2a50e27657a1ecd84912ef33a686849e3 Mon Sep 17 00:00:00 2001 From: Jimmy Praet Date: Thu, 23 Jun 2022 11:51:44 +0200 Subject: [PATCH] Dashboard feed respect setting.UI.FeedPagingNum again (#20094) (#20099) 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)