fix typo for config item
This commit is contained in:
parent
83695acae7
commit
81bd7d77fc
1 changed files with 2 additions and 2 deletions
|
@ -41,7 +41,7 @@ def on_receive_events(transaction):
|
||||||
token = app.config['MATRIX_PNUT_TOKEN']
|
token = app.config['MATRIX_PNUT_TOKEN']
|
||||||
text = "* " + get_displayname(event["user_id"]) + " " + event['content']['body']
|
text = "* " + get_displayname(event["user_id"]) + " " + event['content']['body']
|
||||||
elif event['content']['msgtype'] == 'm.image':
|
elif event['content']['msgtype'] == 'm.image':
|
||||||
imgurl = app.config['MATRIXBOT_HOST'] + '/_matrix/media/r0/download/' + event['content']['url'][6:]
|
imgurl = app.config['MATRIX_HOST'] + '/_matrix/media/r0/download/' + jevent['content']['url'][6:]
|
||||||
if user:
|
if user:
|
||||||
token = user.pnut_token
|
token = user.pnut_token
|
||||||
text = ""
|
text = ""
|
||||||
|
@ -60,7 +60,7 @@ def on_receive_events(transaction):
|
||||||
|
|
||||||
if user == None and not chan.pnut_write:
|
if user == None and not chan.pnut_write:
|
||||||
txId += 1
|
txId += 1
|
||||||
url = app.config['MATRIXBOT_HOST']
|
url = app.config['MATRIX_HOST']
|
||||||
url += '/_matrix/client/r0/rooms/{0}/redact/{1}/{2}'.format(
|
url += '/_matrix/client/r0/rooms/{0}/redact/{1}/{2}'.format(
|
||||||
event['room_id'], event['event_id'], txId)
|
event['room_id'], event['event_id'], txId)
|
||||||
url += "?access_token=" + app.config['MATRIX_AS_TOKEN']
|
url += "?access_token=" + app.config['MATRIX_AS_TOKEN']
|
||||||
|
|
Loading…
Reference in a new issue