Skip to content

Commit c1a1363

Browse files
committed
[GITEA] Fix pagination for followers and following
- Use the correct total amount for pagination. Thereby correctly show the pagination bare when there's more than one page of followers/followings.
1 parent c9afe48 commit c1a1363

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/web/user/profile.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ func prepareUserProfileTabData(ctx *context.Context, showPrivate bool, profileGi
157157
switch tab {
158158
case "followers":
159159
ctx.Data["Cards"] = followers
160-
total = int(count)
160+
total = int(numFollowers)
161161
case "following":
162162
ctx.Data["Cards"] = following
163-
total = int(count)
163+
total = int(numFollowing)
164164
case "activity":
165165
date := ctx.FormString("date")
166166
pagingNum = setting.UI.FeedPagingNum

0 commit comments

Comments
 (0)