Skip to content

Commit

Permalink
Respect setting.UI.FeedPagingNum (#20094)
Browse files Browse the repository at this point in the history
Fixes #20080
  • Loading branch information
jpraet authored Jun 23, 2022
1 parent 3ba0910 commit b8cfd46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions routers/web/user/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions routers/web/user/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b8cfd46

Please sign in to comment.