diff options
author | Erik Johnston <erik@matrix.org> | 2014-12-02 10:42:28 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-12-02 10:42:28 +0000 |
commit | 9d53228158bd94093eea4407b93b564ee065930b (patch) | |
tree | 8a61caf650cd28843b1edf965e0064e6d68e5894 /synapse/rest/presence.py | |
parent | Store full JSON of events in db (diff) | |
download | synapse-9d53228158bd94093eea4407b93b564ee065930b.tar.xz |
Change DomainSpecificString so that it doesn't use a HomeServer object
Diffstat (limited to 'synapse/rest/presence.py')
-rw-r--r-- | synapse/rest/presence.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/rest/presence.py b/synapse/rest/presence.py index 502ed0d4ca..062c895595 100644 --- a/synapse/rest/presence.py +++ b/synapse/rest/presence.py @@ -83,7 +83,7 @@ class PresenceListRestServlet(RestServlet): user_id = urllib.unquote(user_id) user = self.hs.parse_userid(user_id) - if not user.is_mine: + if not self.hs.is_mine(user): raise SynapseError(400, "User not hosted on this Home Server") if auth_user != user: @@ -104,7 +104,7 @@ class PresenceListRestServlet(RestServlet): user_id = urllib.unquote(user_id) user = self.hs.parse_userid(user_id) - if not user.is_mine: + if not self.hs.is_mine(user): raise SynapseError(400, "User not hosted on this Home Server") if auth_user != user: |