fixed a pleroma bug that's been around for ages but apparently nobody noticed whoops

This commit is contained in:
Lynnesbian 2020-03-10 17:12:23 +10:00
parent c3b9d91ce7
commit 5534f99fc7
No known key found for this signature in database
GPG key ID: F0A184B5213D9F90

View file

@ -203,6 +203,10 @@ for f in following:
elif 'prev' not in j: elif 'prev' not in j:
print("Using Pleroma compatibility mode") print("Using Pleroma compatibility mode")
pleroma = True pleroma = True
if 'first' in j:
# apparently there used to be a 'first' field in pleroma's outbox output, but it's not there any more
# i'll keep this for backwards compatibility with older pleroma instances
# it was removed in pleroma 1.0.7 - https://git.pleroma.social/pleroma/pleroma/-/blob/841e4e4d835b8d1cecb33102356ca045571ef1fc/CHANGELOG.md#107-2019-09-26
j = j['first'] j = j['first']
else: else:
print("Using standard mode") print("Using standard mode")