1
0
mirror of https://gitlab.com/brutaldon/brutaldon.git synced 2024-12-04 14:46:24 -05:00

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

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