Fix Matrix webhook URL

This commit is contained in:
Wim de With 2019-06-17 17:50:26 +02:00
parent 603e00bbce
commit 5bf3f9ad26

View File

@ -265,13 +265,13 @@ class NotifyMatrix(NotifyBase):
default_port = 443 if self.secure else 80
# Prepare our URL
url = '{schema}://{hostname}:{port}/{token}{webhook_path}'.format(
url = '{schema}://{hostname}:{port}/{webhook_path}/{token}'.format(
schema='https' if self.secure else 'http',
hostname=self.host,
port='' if self.port is None
or self.port == default_port else self.port,
token=access_token,
webhook_path=MATRIX_V1_WEBHOOK_PATH,
token=access_token,
)
# Retrieve our payload