mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-30 18:42:05 +00:00
fix(hydra): Idk maybe this will fix it
This commit is contained in:
parent
540cd28d44
commit
a35f009d41
1 changed files with 9 additions and 7 deletions
|
@ -195,13 +195,15 @@ async fn get_auth_chain_inner(
|
||||||
debug_error!(?event_id, ?e, "Could not find pdu mentioned in auth events");
|
debug_error!(?event_id, ?e, "Could not find pdu mentioned in auth events");
|
||||||
},
|
},
|
||||||
| Ok(pdu) => {
|
| Ok(pdu) => {
|
||||||
if pdu.room_id.as_ref().is_some_and(|r| *r == *room_id) {
|
if let Some(claimed_room_id) = pdu.room_id.clone() {
|
||||||
return Err!(Request(Forbidden(error!(
|
if claimed_room_id != *room_id {
|
||||||
?event_id,
|
return Err!(Request(Forbidden(error!(
|
||||||
?room_id,
|
?event_id,
|
||||||
wrong_room_id = ?pdu.room_id.unwrap(),
|
?room_id,
|
||||||
"auth event for incorrect room"
|
wrong_room_id = ?pdu.room_id.unwrap(),
|
||||||
))));
|
"auth event for incorrect room"
|
||||||
|
))));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for auth_event in &pdu.auth_events {
|
for auth_event in &pdu.auth_events {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue