fix: Forbid creating events sent by remote users

This commit is contained in:
timedout
2026-04-05 22:18:05 +01:00
parent 3ab1f102dd
commit 688cd8f46a

View File

@@ -81,6 +81,11 @@ fn from_evt(
))
}
}
if !self.services.globals.user_is_local(sender) {
return Err!(Request(Forbidden("Sender must be a local user")));
}
let PduBuilder {
event_type,
content,