mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
actually log which events are evil
This commit is contained in:
parent
e318dfcb3d
commit
276d73f471
1 changed files with 2 additions and 1 deletions
|
|
@ -154,9 +154,10 @@ impl Service {
|
|||
match services().rooms.timeline.get_pdu(&event_id) {
|
||||
Ok(Some(pdu)) => {
|
||||
if pdu.room_id != room_id {
|
||||
warn!(bad_room_id = %pdu.room_id, "Event referenced in auth chain has incorrect room id");
|
||||
return Err(Error::BadRequest(
|
||||
ErrorKind::forbidden(),
|
||||
"Evil event in db",
|
||||
"Event has incorrect room id",
|
||||
));
|
||||
}
|
||||
for auth_event in &pdu.auth_events {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue