summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorDirk Klimpel <5740567+dklimpel@users.noreply.github.com>2022-08-23 10:48:35 +0200
committerGitHub <noreply@github.com>2022-08-23 09:48:35 +0100
commit37f329c9adf6ed02df15661850f999edd9e5fd93 (patch)
tree056962ef1ab55f435f2d752bdf798e80a6262d60 /synapse
parentFix Prometheus metrics being negative (mixed up start/end) (#13584) (diff)
downloadsynapse-37f329c9adf6ed02df15661850f999edd9e5fd93.tar.xz
Fix that sending server notices fail if avatar is `None` (#13566)
Indroduced in #11846.
Diffstat (limited to 'synapse')
-rw-r--r--synapse/handlers/room_member.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/room_member.py b/synapse/handlers/room_member.py
index d1909665d6..65b9a655d4 100644
--- a/synapse/handlers/room_member.py
+++ b/synapse/handlers/room_member.py
@@ -689,7 +689,7 @@ class RoomMemberHandler(metaclass=abc.ABCMeta):
                 errcode=Codes.BAD_JSON,
             )
 
-        if "avatar_url" in content:
+        if "avatar_url" in content and content.get("avatar_url") is not None:
             if not await self.profile_handler.check_avatar_size_and_mime_type(
                 content["avatar_url"],
             ):