forked from mirrors/bookwyrm
Uses safe method for pagination on follows pages
This commit is contained in:
parent
b7ea3e5e6c
commit
3f1d670911
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue