diff options
author | reivilibre <oliverw@matrix.org> | 2021-10-27 17:27:23 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-27 17:27:23 +0100 |
commit | 75ca0a6168f92dab3255839cf85fb0df3a0076c3 (patch) | |
tree | b4326bf5fae23b6df52d9f43dbc6d1ddce3b68c6 /synapse/handlers/profile.py | |
parent | Fixed config parse bug in review_recent_signups (#11191) (diff) | |
download | synapse-75ca0a6168f92dab3255839cf85fb0df3a0076c3.tar.xz |
Annotate `log_function` decorator (#10943)
Co-authored-by: Patrick Cloke <clokep@users.noreply.github.com>
Diffstat (limited to 'synapse/handlers/profile.py')
-rw-r--r-- | synapse/handlers/profile.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/synapse/handlers/profile.py b/synapse/handlers/profile.py index e6c3cf585b..6b5a6ded8b 100644 --- a/synapse/handlers/profile.py +++ b/synapse/handlers/profile.py @@ -456,7 +456,11 @@ class ProfileHandler: continue new_name = profile.get("displayname") + if not isinstance(new_name, str): + new_name = None new_avatar = profile.get("avatar_url") + if not isinstance(new_avatar, str): + new_avatar = None # We always hit update to update the last_check timestamp await self.store.update_remote_profile_cache(user_id, new_name, new_avatar) |