From 83b5122803a3f53ccd1cfff1d1af65e7791275e6 Mon Sep 17 00:00:00 2001 From: Matthew Hodgson Date: Sun, 4 Nov 2018 00:56:17 +0000 Subject: fix avatar set --- synapse/rest/client/v1/profile.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synapse/rest/client/v1/profile.py b/synapse/rest/client/v1/profile.py index 5893fc3634..56679f13f4 100644 --- a/synapse/rest/client/v1/profile.py +++ b/synapse/rest/client/v1/profile.py @@ -130,7 +130,7 @@ class ProfileAvatarURLRestServlet(ClientV1RestServlet): shadow_user = UserID( user.localpart, self.hs.config.shadow_server.get("hs") ) - self.shadow_avatar_url(user_id, content) + self.shadow_avatar_url(shadow_user.to_string(), content) defer.returnValue((200, {})) @@ -145,7 +145,7 @@ class ProfileAvatarURLRestServlet(ClientV1RestServlet): yield self.http_client.put_json( "%s/_matrix/client/r0/profile/%s/avatar_url?access_token=%s&user_id=%s" % ( - shadow_hs_url, shadow_user.to_string(), as_token, user_id + shadow_hs_url, user_id, as_token, user_id ), body ) -- cgit 1.4.1