Skip to content

Commit

Permalink
more minor notif tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
c-e-p committed May 26, 2023
1 parent 2f0da92 commit 61b905d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ourchive_app/frontend/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,8 @@ def user_notifications(request, username):
notifications = response[0]['results']
return render(request, 'notifications.html', {
'notifications': notifications,
'next': f"/username/{username}/notifications/{response['next_params']}" if response['next_params'] is not None else None,
'previous': f"/username/{username}/notifications/{response['prev_params']}" if response['prev_params'] is not None else None})
'next': f"/username/{username}/notifications/{response[0]['next_params']}" if response[0]['next_params'] is not None else None,
'previous': f"/username/{username}/notifications/{response[0]['prev_params']}" if response[0]['prev_params'] is not None else None})
elif response[1] == 403:
messages.add_message(request, messages.ERROR, 'You are not authorized to view these notifications.')
else:
Expand Down

0 comments on commit 61b905d

Please sign in to comment.