mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-12-10 00:26:12 -05:00
Create a separate filter object to do the actual filtering, so that we can
split the storage and management of filters from the actual filter code and don't have to load a filter from the db each time we filter an event
This commit is contained in:
parent
295322048d
commit
93ed31dda2
3 changed files with 166 additions and 164 deletions
|
|
@ -59,7 +59,7 @@ class GetFilterRestServlet(RestServlet):
|
|||
filter_id=filter_id,
|
||||
)
|
||||
|
||||
defer.returnValue((200, filter))
|
||||
defer.returnValue((200, filter.filter_json))
|
||||
except KeyError:
|
||||
raise SynapseError(400, "No such filter")
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue