mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-28 07:00:51 +03:00
event.event_id => event.sender
This commit is contained in:
parent
ae6eb102b1
commit
2df75cec69
1 changed files with 2 additions and 2 deletions
|
@ -96,12 +96,12 @@ class ApplicationServicesHandler(object):
|
|||
|
||||
@defer.inlineCallbacks
|
||||
def handle_event(event):
|
||||
ev_domain = get_domain_from_id(event.event_id)
|
||||
ev_domain = get_domain_from_id(event.sender)
|
||||
if any(srv_re.match(ev_domain) is not None
|
||||
for srv_re in self.server_blacklist):
|
||||
logger.info(
|
||||
"Ignoring %s from %s, matches server blacklist",
|
||||
event.event_id,
|
||||
event.sender,
|
||||
ev_domain
|
||||
)
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue