mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-17 01:23:53 +01:00
Ensure that we define sender_domain
This commit is contained in:
parent
75d4986a8c
commit
cbf82dddf1
1 changed files with 1 additions and 0 deletions
|
@ -76,6 +76,7 @@ def check(event, auth_events, do_sig_check=True, do_size_check=True):
|
||||||
return
|
return
|
||||||
|
|
||||||
if event.type == EventTypes.Create:
|
if event.type == EventTypes.Create:
|
||||||
|
sender_domain = get_domain_from_id(event.sender)
|
||||||
room_id_domain = get_domain_from_id(event.room_id)
|
room_id_domain = get_domain_from_id(event.room_id)
|
||||||
if room_id_domain != sender_domain:
|
if room_id_domain != sender_domain:
|
||||||
raise AuthError(
|
raise AuthError(
|
||||||
|
|
Loading…
Reference in a new issue