summary refs log tree commit diff
diff options
context:
space:
mode:
-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
         )