mirror of
https://forgejo.ellis.link/continuwuation/continuwuity/
synced 2026-04-13 00:45:40 +00:00
fix: Forbid creating events sent by remote users
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user