Remove unneeded page checking logic
This commit is contained in:
@ -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,
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user