summary refs log tree commit diff
path: root/synapse/rest/admin
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2023-05-05 15:51:46 +0100
committerGitHub <noreply@github.com>2023-05-05 15:51:46 +0100
commit7c95b65873c7a858388b9c99c7e9e15dc5ccb2b5 (patch)
treef50dd2288c2561afbfeed965e02563a9711e5ce9 /synapse/rest/admin
parentFactor out an `is_mine_server_name` method (#15542) (diff)
downloadsynapse-7c95b65873c7a858388b9c99c7e9e15dc5ccb2b5.tar.xz
Clean up and clarify "Create or modify Account" Admin API documentation (#15544)
Diffstat (limited to 'synapse/rest/admin')
-rw-r--r--synapse/rest/admin/users.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/admin/users.py b/synapse/rest/admin/users.py
index 331f225116..932333ae57 100644
--- a/synapse/rest/admin/users.py
+++ b/synapse/rest/admin/users.py
@@ -336,7 +336,7 @@ class UserRestServletV2(RestServlet):
                         HTTPStatus.CONFLICT, "External id is already in use."
                     )
 
-            if "avatar_url" in body and isinstance(body["avatar_url"], str):
+            if "avatar_url" in body:
                 await self.profile_handler.set_avatar_url(
                     target_user, requester, body["avatar_url"], True
                 )