mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 22:14:55 -04:00
Initial trivial implementation of an actual 'Filtering' object; move storage of user filters into there
This commit is contained in:
parent
f9958f3404
commit
05c7cba73a
3 changed files with 58 additions and 13 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue