fix: Don't serve events over s2s that are rejected

This commit is contained in:
timedout
2026-05-13 20:47:10 +01:00
parent 3764faeefc
commit 6715f63acc
5 changed files with 45 additions and 0 deletions
+9
View File
@@ -22,6 +22,15 @@ pub(crate) async fn get_event_route(
.await
.map_err(|_| err!(Request(NotFound("Event not found."))))?;
if services
.rooms
.pdu_metadata
.is_event_rejected(&body.event_id)
.await
{
return Err!(Request(NotFound("Event not found.")));
}
let room_id: &RoomId = event
.get("room_id")
.and_then(|val| val.as_str())