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,7 +195,8 @@ async fn get_auth_chain_inner(
|
|||
debug_error!(?event_id, ?e, "Could not find pdu mentioned in auth events");
|
||||
},
|
||||
| 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() {
|
||||
if claimed_room_id != *room_id {
|
||||
return Err!(Request(Forbidden(error!(
|
||||
?event_id,
|
||||
?room_id,
|
||||
|
@ -203,6 +204,7 @@ async fn get_auth_chain_inner(
|
|||
"auth event for incorrect room"
|
||||
))));
|
||||
}
|
||||
}
|
||||
|
||||
for auth_event in &pdu.auth_events {
|
||||
let sauthevent = self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue