mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-18 08:11:24 +01:00
implement per-event filtering for search
This commit is contained in:
parent
d2fab35868
commit
2e6a5f30cb
1 changed files with 1 additions and 0 deletions
|
|
@ -110,6 +110,7 @@ pub(crate) async fn search_events_route(
|
||||||
.timeline
|
.timeline
|
||||||
.get_pdu_from_id(result)
|
.get_pdu_from_id(result)
|
||||||
.ok()?
|
.ok()?
|
||||||
|
.filter(|pdu| compiled_filter.pdu_event_allowed(pdu))
|
||||||
.filter(|pdu| {
|
.filter(|pdu| {
|
||||||
services()
|
services()
|
||||||
.rooms
|
.rooms
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue