summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2018-11-04 00:56:17 +0000
committerMatthew Hodgson <matthew@matrix.org>2018-11-04 00:56:17 +0000
commit83b5122803a3f53ccd1cfff1d1af65e7791275e6 (patch)
treee049f6f030907b4fd501b51402bbd4eb96aa2216
parentmake profile shadowing work (diff)
downloadsynapse-83b5122803a3f53ccd1cfff1d1af65e7791275e6.tar.xz
fix avatar set
-rw-r--r--synapse/rest/client/v1/profile.py4
1 files 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
         )