mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-25 23:05:39 +03:00
Backport #27127 by @earl-warren
- Use the correct total amount for pagination. Thereby correctly show
the pagination bare when there's more than one page of
followers/followings.
Refs: https://codeberg.org/forgejo/forgejo/pulls/1477
(cherry picked from commit c1a136318b
)
Co-authored-by: Earl Warren <109468362+earl-warren@users.noreply.github.com>
Co-authored-by: Gusted <postmaster@gusted.xyz>
This commit is contained in:
parent
882e465c3a
commit
1d6e5c8e58
1 changed files with 2 additions and 2 deletions
|
@ -223,10 +223,10 @@ func Profile(ctx *context.Context) {
|
|||
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")
|
||||
items, count, err := activities_model.GetFeeds(ctx, activities_model.GetFeedsOptions{
|
||||
|
|
Loading…
Reference in a new issue