[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.
This commit is contained in:
Gusted 2023-09-18 22:52:00 +02:00
parent c9afe48acc
commit c1a136318b
No known key found for this signature in database
GPG key ID: FD821B732837125F

View file

@ -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