Remove unneeded page checking logic

This commit is contained in:
Mouse Reeve
2021-04-19 15:01:20 -07:00
parent 77775d9bf8
commit 91aa6fa95f
10 changed files with 23 additions and 86 deletions

View File

@ -40,11 +40,6 @@ class User(View):
return ActivitypubResponse(user.to_activity())
# otherwise we're at a UI view
try:
page = int(request.GET.get("page", 1))
except ValueError:
page = 1
shelf_preview = []
# only show other shelves that should be visible
@ -87,7 +82,7 @@ class User(View):
"is_self": is_self,
"shelves": shelf_preview,
"shelf_count": shelves.count(),
"activities": paginated.get_page(page),
"activities": paginated.get_page(request.GET.get("page", 1)),
"goal": goal,
}