mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-07-10 04:56:42 +02:00
fix an auth rule not applying correctly
This commit is contained in:
parent
112390d747
commit
16b23e9c03
1 changed files with 10 additions and 0 deletions
|
@ -255,6 +255,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");
|
||||
|
|
Loading…
Add table
Reference in a new issue