mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-28 06:33:50 +03:00
[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:
parent
c9afe48acc
commit
c1a136318b
1 changed files with 2 additions and 2 deletions
|
@ -157,10 +157,10 @@ func prepareUserProfileTabData(ctx *context.Context, showPrivate bool, profileGi
|
||||||
switch tab {
|
switch tab {
|
||||||
case "followers":
|
case "followers":
|
||||||
ctx.Data["Cards"] = followers
|
ctx.Data["Cards"] = followers
|
||||||
total = int(count)
|
total = int(numFollowers)
|
||||||
case "following":
|
case "following":
|
||||||
ctx.Data["Cards"] = following
|
ctx.Data["Cards"] = following
|
||||||
total = int(count)
|
total = int(numFollowing)
|
||||||
case "activity":
|
case "activity":
|
||||||
date := ctx.FormString("date")
|
date := ctx.FormString("date")
|
||||||
pagingNum = setting.UI.FeedPagingNum
|
pagingNum = setting.UI.FeedPagingNum
|
||||||
|
|
Loading…
Reference in a new issue