summary refs log tree commit diff
path: root/synapse/server.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-01-19 16:16:05 +0000
committerErik Johnston <erik@matrix.org>2016-01-19 16:16:05 +0000
commit40d9765123463c9b14080b1f39dd1d21cc0c36eb (patch)
tree3d873a4aeb71913540fffc1bdebdf40a9ca47c4a /synapse/server.py
parentHandle glob -> regex errors (diff)
parentUse split rather than endswith (diff)
downloadsynapse-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.py3
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)