summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2018-11-04 23:49:19 +0000
committerMatthew Hodgson <matthew@matrix.org>2018-11-04 23:49:19 +0000
commitc3acc45a87838e19bbe6f67e73a0635517736358 (patch)
tree79ba28e956c85f9f352f9c79e9016e88df45df73 /synapse
parentadd im.vector.hide_profile to user account_data (diff)
downloadsynapse-c3acc45a87838e19bbe6f67e73a0635517736358.tar.xz
pull in profile_handler correctly
Diffstat (limited to 'synapse')
-rw-r--r--synapse/rest/client/v2_alpha/account_data.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/rest/client/v2_alpha/account_data.py b/synapse/rest/client/v2_alpha/account_data.py
index 2d4d984275..f4cab67560 100644
--- a/synapse/rest/client/v2_alpha/account_data.py
+++ b/synapse/rest/client/v2_alpha/account_data.py
@@ -19,6 +19,7 @@ from twisted.internet import defer
 
 from synapse.api.errors import AuthError, SynapseError
 from synapse.http.servlet import RestServlet, parse_json_object_from_request
+from synapse.types import UserID
 
 from ._base import client_v2_patterns
 
@@ -38,6 +39,7 @@ class AccountDataServlet(RestServlet):
         self.auth = hs.get_auth()
         self.store = hs.get_datastore()
         self.notifier = hs.get_notifier()
+        self._profile_handler = hs.get_profile_handler()
 
     @defer.inlineCallbacks
     def on_PUT(self, request, user_id, account_data_type):