summary refs log tree commit diff
path: root/synapse/server.py
diff options
context:
space:
mode:
authorPaul "LeoNerd" Evans <paul@matrix.org>2015-01-27 14:28:56 +0000
committerPaul "LeoNerd" Evans <paul@matrix.org>2015-01-27 14:28:56 +0000
commit05c7cba73a050f19cc52129b65b0183eaa832a42 (patch)
treee0ad0e2a239a409a11fcc987802408683ec5bd55 /synapse/server.py
parentUse new V2AlphaRestTestCase (diff)
downloadsynapse-05c7cba73a050f19cc52129b65b0183eaa832a42.tar.xz
Initial trivial implementation of an actual 'Filtering' object; move storage of user filters into there
Diffstat (limited to 'synapse/server.py')
-rw-r--r--synapse/server.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/server.py b/synapse/server.py
index f09d5d581e..9b42079e05 100644
--- a/synapse/server.py
+++ b/synapse/server.py
@@ -32,6 +32,7 @@ from synapse.streams.events import EventSources
 from synapse.api.ratelimiting import Ratelimiter
 from synapse.crypto.keyring import Keyring
 from synapse.events.builder import EventBuilderFactory
+from synapse.api.filtering import Filtering
 
 
 class BaseHomeServer(object):
@@ -79,6 +80,7 @@ class BaseHomeServer(object):
         'ratelimiter',
         'keyring',
         'event_builder_factory',
+        'filtering',
     ]
 
     def __init__(self, hostname, **kwargs):
@@ -197,3 +199,6 @@ class HomeServer(BaseHomeServer):
             clock=self.get_clock(),
             hostname=self.hostname,
         )
+
+    def build_filtering(self):
+        return Filtering(self)