]> source.dussan.org Git - gitea.git/commitdiff
Dashboard feed respect setting.UI.FeedPagingNum again (#20094) (#20099)
authorJimmy Praet <jimmy.praet@telenet.be>
Thu, 23 Jun 2022 09:51:44 +0000 (11:51 +0200)
committerGitHub <noreply@github.com>
Thu, 23 Jun 2022 09:51:44 +0000 (11:51 +0200)
Fixes #20080

routers/web/user/home.go
routers/web/user/profile.go

index 7fe80a2a4ba4f27d3ef153dc12075bb2857e515f..698117e9571fb9b3ea276c521b4300f1bbfff623 100644 (file)
@@ -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)
index dd5804cd42d5c5910324207a5b6a13875f8ecbb7..609f3242c65e2dbc07e346e24f771f19e99f43be 100644 (file)
@@ -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)