mirror of
https://gitlab.com/brutaldon/brutaldon
synced 2025-06-05 21:49:32 +02:00
Fix presence of newer link when no new notifications
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user