mirror of
http://git.carcosa.net/jmcbray/brutaldon.git
synced 2024-11-23 15:23:52 -05:00
Fix pagination on Pleroma (probably)
This commit is contained in:
parent
01f2cc7d35
commit
e4bbd29cc8
@ -127,10 +127,13 @@ def timeline(request, timeline='home', timeline_name='Home', max_id=None, since_
|
||||
prev = data[0]._pagination_prev
|
||||
if len(mastodon.timeline(since_id=prev['since_id'])) == 0:
|
||||
prev = None
|
||||
else:
|
||||
prev['since_id'] = data[0].id
|
||||
except (IndexError, AttributeError):
|
||||
prev = None
|
||||
try:
|
||||
next = data[-1]._pagination_next
|
||||
next['max_id'] = data[-1].id
|
||||
except (IndexError, AttributeError):
|
||||
next = None
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user