Merge pull request #1102 from bookwyrm-social/pagination-get

Uses safe method for pagination on follows pages
This commit is contained in:
Mouse Reeve 2021-05-20 15:17:54 -07:00 committed by GitHub
commit 0ba7ee41fe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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