mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-18 07:52:56 +01:00
Rename var
This commit is contained in:
parent
afe475e9be
commit
9d39615b7d
1 changed files with 3 additions and 3 deletions
|
@ -1033,15 +1033,15 @@ class FederationHandler(BaseHandler):
|
||||||
break
|
break
|
||||||
|
|
||||||
for e in itertools.chain(auth_events, state, [event]):
|
for e in itertools.chain(auth_events, state, [event]):
|
||||||
a = {
|
auth_for_e = {
|
||||||
(event_map[e_id].type, event_map[e_id].state_key): event_map[e_id]
|
(event_map[e_id].type, event_map[e_id].state_key): event_map[e_id]
|
||||||
for e_id, _ in e.auth_events
|
for e_id, _ in e.auth_events
|
||||||
}
|
}
|
||||||
if create_event:
|
if create_event:
|
||||||
a[(EventTypes.Create, "")] = create_event
|
auth_for_e[(EventTypes.Create, "")] = create_event
|
||||||
|
|
||||||
try:
|
try:
|
||||||
self.auth.check(e, auth_events=a)
|
self.auth.check(e, auth_events=auth_for_e)
|
||||||
except AuthError as err:
|
except AuthError as err:
|
||||||
logger.warn(
|
logger.warn(
|
||||||
"Rejecting %s because %s",
|
"Rejecting %s because %s",
|
||||||
|
|
Loading…
Reference in a new issue