From c498146917392e314d056e39bc13c5fc5e304133 Mon Sep 17 00:00:00 2001 From: rimu <3310831+rimu@users.noreply.github.com> Date: Sat, 11 May 2024 10:50:22 +1200 Subject: [PATCH] nodebb has no followers attribute --- app/activitypub/util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/activitypub/util.py b/app/activitypub/util.py index 5bde2753..46b48c68 100644 --- a/app/activitypub/util.py +++ b/app/activitypub/util.py @@ -659,7 +659,7 @@ def actor_json_to_model(activity_json, address, server): ap_id=f"{address[1:].lower()}@{server.lower()}" if address.startswith('!') else f"{address}@{server}", ap_public_url=activity_json['id'], ap_profile_id=activity_json['id'].lower(), - ap_followers_url=activity_json['followers'], + ap_followers_url=activity_json['followers'] if 'followers' in activity_json else None, ap_inbox_url=activity_json['endpoints']['sharedInbox'], ap_outbox_url=activity_json['outbox'], ap_featured_url=activity_json['featured'] if 'featured' in activity_json else '',