only update display name if available

This commit is contained in:
rimu 2024-05-16 09:26:14 +12:00
parent 71be62cbe7
commit a77c203abf

View file

@ -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']