mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-13 04:06:54 +00:00
fix: Don't serve events over s2s that are rejected
This commit is contained in:
5 files changed
+45
No files matched your search
@@ -26,6 +26,15 @@ pub(crate) async fn get_event_authorization_route(
|
||||
.check()
|
||||
.await?;
|
||||
|
||||
if services
|
||||
.rooms
|
||||
.pdu_metadata
|
||||
.is_event_rejected(&body.event_id)
|
||||
.await
|
||||
{
|
||||
return Err!(Request(NotFound("Event not found.")));
|
||||
}
|
||||
|
||||
if !services
|
||||
.rooms
|
||||
.state_cache
|
||||
|
||||
Reference in new issue
Block a user