handle case with a single json page better

This commit is contained in:
Lynne 2020-03-10 14:35:12 +10:00
parent eea48dda1c
commit dbd74ed6fe
No known key found for this signature in database
GPG Key ID: F0A184B5213D9F90

View File

@ -193,7 +193,10 @@ for f in following:
sys.exit(1)
pleroma = False
if 'next' not in j:
if 'next' not in j and 'prev' not in j:
# there's only one page of results, don't bother doing anything special
pass
elif 'next' not in j:
print("Using Pleroma compatibility mode")
pleroma = True
j = j['first']