diff options
author | Erik Johnston <erik@matrix.org> | 2016-01-19 16:16:05 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2016-01-19 16:16:05 +0000 |
commit | 40d9765123463c9b14080b1f39dd1d21cc0c36eb (patch) | |
tree | 3d873a4aeb71913540fffc1bdebdf40a9ca47c4a /synapse/server.py | |
parent | Handle glob -> regex errors (diff) | |
parent | Use split rather than endswith (diff) | |
download | synapse-40d9765123463c9b14080b1f39dd1d21cc0c36eb.tar.xz |
Merge pull request #505 from matrix-org/erikj/push_fast
Push actions perf
Diffstat (limited to 'synapse/server.py')
-rw-r--r-- | synapse/server.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/server.py b/synapse/server.py index ffd4f936d0..4a5796b982 100644 --- a/synapse/server.py +++ b/synapse/server.py @@ -139,6 +139,9 @@ class BaseHomeServer(object): def is_mine(self, domain_specific_string): return domain_specific_string.domain == self.hostname + def is_mine_id(self, string): + return string.split(":", 1)[1] == self.hostname + # Build magic accessors for every dependency for depname in BaseHomeServer.DEPENDENCIES: BaseHomeServer._make_dependency_method(depname) |