mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 12:46:49 +00:00
fix: Forbid creating events sent by remote users
This commit is contained in:
1 file changed
+5
@@ -81,6 +81,11 @@ pub async fn create_hash_and_sign_event(
|
|||||||
))
|
))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if !self.services.globals.user_is_local(sender) {
|
||||||
|
return Err!(Request(Forbidden("Sender must be a local user")));
|
||||||
|
}
|
||||||
|
|
||||||
let PduBuilder {
|
let PduBuilder {
|
||||||
event_type,
|
event_type,
|
||||||
content,
|
content,
|
||||||
|
|||||||
Reference in new issue
Block a user