1
0
Fork 0
mirror of https://github.com/Lynnesbian/FediBooks/ synced 2024-11-26 00:58:59 +00:00

Compare commits

..

4 commits

2 changed files with 4 additions and 2 deletions

View file

@ -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.7) pleroma instances
j = j['first'] j = j['first']
else: else:
uri = "{}&min_id={}".format(outbox, last_post) uri = "{}&min_id={}".format(outbox, last_post)