Uses safe method for pagination on follows pages

This commit is contained in:
Mouse Reeve 2021-05-20 14:47:23 -07:00
parent b7ea3e5e6c
commit 3f1d670911

View file

@ -95,7 +95,7 @@ class Followers(View):
data = { data = {
"user": user, "user": user,
"is_self": request.user.id == user.id, "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) return TemplateResponse(request, "user/relationships/followers.html", data)
@ -114,7 +114,7 @@ class Following(View):
data = { data = {
"user": user, "user": user,
"is_self": request.user.id == user.id, "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) return TemplateResponse(request, "user/relationships/following.html", data)