mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
fix: Forbid creating events sent by remote users
This commit is contained in:
@@ -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