diff options
author | Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> | 2023-05-05 15:51:46 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-05 15:51:46 +0100 |
commit | 7c95b65873c7a858388b9c99c7e9e15dc5ccb2b5 (patch) | |
tree | f50dd2288c2561afbfeed965e02563a9711e5ce9 /synapse/rest/admin/users.py | |
parent | Factor out an `is_mine_server_name` method (#15542) (diff) | |
download | synapse-7c95b65873c7a858388b9c99c7e9e15dc5ccb2b5.tar.xz |
Clean up and clarify "Create or modify Account" Admin API documentation (#15544)
Diffstat (limited to 'synapse/rest/admin/users.py')
-rw-r--r-- | synapse/rest/admin/users.py | 2 |
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 ) |