mirror of
https://github.com/Lynnesbian/FediBooks/
synced 2024-12-27 06:48: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,7 +35,9 @@ def scrape_posts(account):
|
|||
# check for pleroma
|
||||
pleroma = 'next' not in j
|
||||
if pleroma:
|
||||
j = j['first']
|
||||
if 'first' in j:
|
||||
# backwards compatibility for older (pre-v1.0.4) pleroma instances
|
||||
j = j['first']
|
||||
else:
|
||||
uri = "{}&min_id={}".format(outbox, last_post)
|
||||
r = requests.get(uri)
|
||||
|
|
Loading…
Reference in a new issue