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:
parent
f64f4f92cf
commit
025a6f736d
@ -252,7 +252,7 @@ def note(request, next=None, prev=None):
|
|||||||
notes = mastodon.notifications(limit=100, max_id=next, since_id=prev)
|
notes = mastodon.notifications(limit=100, max_id=next, since_id=prev)
|
||||||
try:
|
try:
|
||||||
prev = notes[0]._pagination_prev
|
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
|
prev = None
|
||||||
except IndexError:
|
except IndexError:
|
||||||
prev = None
|
prev = None
|
||||||
|
Loading…
Reference in New Issue
Block a user