Fix presence of newer link when no new notifications

This commit is contained in:
Jason McBrayer 2018-06-24 15:09:09 -04:00
parent f64f4f92cf
commit 025a6f736d
1 changed files with 1 additions and 1 deletions

View File

@ -252,7 +252,7 @@ def note(request, next=None, prev=None):
notes = mastodon.notifications(limit=100, max_id=next, since_id=prev)
try:
prev = notes[0]._pagination_prev
if len(mastodon.timeline(since_id=prev['since_id'])) == 0:
if len(mastodon.notifications(since_id=prev['since_id'])) == 0:
prev = None
except IndexError:
prev = None