]> source.dussan.org Git - gitea.git/commit
fix pagination for followers and following (#27127) (#27138)
authorGiteabot <teabot@gitea.io>
Tue, 19 Sep 2023 16:03:01 +0000 (00:03 +0800)
committerGitHub <noreply@github.com>
Tue, 19 Sep 2023 16:03:01 +0000 (16:03 +0000)
commit1d6e5c8e5862e634081c943f346003c36e47415f
treeedd3b93008562fd62902192560695fbf51c9edfb
parent882e465c3a4c60a47b9f8a2f58e3cc88c19ed641
fix pagination for followers and following (#27127) (#27138)

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 c1a136318be3bf72511bed108f2d67f2cf34e1b8)

Co-authored-by: Earl Warren <109468362+earl-warren@users.noreply.github.com>
Co-authored-by: Gusted <postmaster@gusted.xyz>
routers/web/user/profile.go