mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-08 20:12:15 -04:00
Fix that sending server notices fail if avatar is None
(#13566)
Indroduced in #11846.
This commit is contained in:
parent
9385c41ba4
commit
37f329c9ad
4 changed files with 64 additions and 4 deletions
|
@ -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"],
|
||||
):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue