mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-26 19:41:11 +00:00
Merge pull request #1102 from bookwyrm-social/pagination-get
Uses safe method for pagination on follows pages
This commit is contained in:
commit
0ba7ee41fe
1 changed files with 2 additions and 2 deletions
|
@ -95,7 +95,7 @@ class Followers(View):
|
|||
data = {
|
||||
"user": user,
|
||||
"is_self": request.user.id == user.id,
|
||||
"follow_list": paginated.page(request.GET.get("page", 1)),
|
||||
"follow_list": paginated.get_page(request.GET.get("page")),
|
||||
}
|
||||
return TemplateResponse(request, "user/relationships/followers.html", data)
|
||||
|
||||
|
@ -114,7 +114,7 @@ class Following(View):
|
|||
data = {
|
||||
"user": user,
|
||||
"is_self": request.user.id == user.id,
|
||||
"follow_list": paginated.page(request.GET.get("page", 1)),
|
||||
"follow_list": paginated.get_page(request.GET.get("page")),
|
||||
}
|
||||
return TemplateResponse(request, "user/relationships/following.html", data)
|
||||
|
||||
|
|
Loading…
Reference in a new issue