1
0
Fork 0
mirror of https://forgejo.ellis.link/continuwuation/continuwuity.git synced 2025-07-27 10:18:30 +00:00

fix an auth rule not applying correctly

This commit is contained in:
nexy7574 2025-06-07 00:46:55 +01:00 committed by Jacob Taylor
parent 563d7e1734
commit 80adf46d5f

View file

@ -256,6 +256,16 @@ where
},
| Some(e) => e,
};
// just re-check 1.2 to work around a bug
let Some(room_id_server_name) = incoming_event.room_id().server_name() else {
warn!("room ID has no servername");
return Ok(false);
};
if room_id_server_name != sender.server_name() {
warn!("servername of room ID does not match servername of m.room.create sender");
return Ok(false);
}
if incoming_event.room_id() != room_create_event.room_id() {
warn!("room_id of incoming event does not match room_id of m.room.create event");