mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-11-25 08:38:59 +00:00
handle newer pleroma instances
This commit is contained in:
parent
ab0400885e
commit
853d5df129
1 changed files with 3 additions and 1 deletions
|
@ -35,6 +35,8 @@ def scrape_posts(account):
|
||||||
# check for pleroma
|
# check for pleroma
|
||||||
pleroma = 'next' not in j
|
pleroma = 'next' not in j
|
||||||
if pleroma:
|
if pleroma:
|
||||||
|
if 'first' in j:
|
||||||
|
# backwards compatibility for older (pre-v1.0.4) pleroma instances
|
||||||
j = j['first']
|
j = j['first']
|
||||||
else:
|
else:
|
||||||
uri = "{}&min_id={}".format(outbox, last_post)
|
uri = "{}&min_id={}".format(outbox, last_post)
|
||||||
|
|
Loading…
Reference in a new issue