diff --git a/app/activitypub/util.py b/app/activitypub/util.py index 06b4f750..fbea4c06 100644 --- a/app/activitypub/util.py +++ b/app/activitypub/util.py @@ -459,7 +459,8 @@ def refresh_user_profile_task(user_id): 'indexable': new_indexable}) user.user_name = activity_json['preferredUsername'] - user.title = activity_json['name'] + if 'name' in activity_json: + user.title = activity_json['name'] user.about_html = parse_summary(activity_json) user.ap_fetched_at = utcnow() user.public_key = activity_json['publicKey']['publicKeyPem']