mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
only update display name if available
This commit is contained in:
parent
71be62cbe7
commit
a77c203abf
1 changed files with 2 additions and 1 deletions
|
@ -459,7 +459,8 @@ def refresh_user_profile_task(user_id):
|
||||||
'indexable': new_indexable})
|
'indexable': new_indexable})
|
||||||
|
|
||||||
user.user_name = activity_json['preferredUsername']
|
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.about_html = parse_summary(activity_json)
|
||||||
user.ap_fetched_at = utcnow()
|
user.ap_fetched_at = utcnow()
|
||||||
user.public_key = activity_json['publicKey']['publicKeyPem']
|
user.public_key = activity_json['publicKey']['publicKeyPem']
|
||||||
|
|
Loading…
Add table
Reference in a new issue