Skip to content

Commit 57b72a0

Browse files
authored
Update routers/web/shared/user/header.go
1 parent 5d65734 commit 57b72a0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

routers/web/shared/user/header.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ func PrepareContextForProfileBigAvatar(ctx *context.Context) {
6363
IncludePrivate: showPrivate,
6464
ListOptions: db.ListOptions{
6565
Page: 1,
66+
// query one more results (without a separate counting) to see whether we need to add the "show more orgs" link
6667
PageSize: setting.UI.User.OrgPagingNum + 1,
6768
},
6869
})

0 commit comments

Comments
 (0)