Skip to content

Commit

Permalink
[GITEA] Fix pagination for followers and following
Browse files Browse the repository at this point in the history
- Use the correct total amount for pagination. Thereby correctly show
the pagination bare when there's more than one page of
followers/followings.
  • Loading branch information
Gusted committed Sep 18, 2023
1 parent c9afe48 commit c1a1363
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routers/web/user/profile.go
Expand Up @@ -157,10 +157,10 @@ func prepareUserProfileTabData(ctx *context.Context, showPrivate bool, profileGi
switch tab {
case "followers":
ctx.Data["Cards"] = followers
total = int(count)
total = int(numFollowers)
case "following":
ctx.Data["Cards"] = following
total = int(count)
total = int(numFollowing)
case "activity":
date := ctx.FormString("date")
pagingNum = setting.UI.FeedPagingNum
Expand Down

0 comments on commit c1a1363

Please sign in to comment.