From 7b8e7d946c43c3333b7ab1f8450c30646a174045 Mon Sep 17 00:00:00 2001 From: Morgan McMillian Date: Tue, 2 May 2017 22:50:33 -0700 Subject: [PATCH] yet another dumb typo --- appservice.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appservice.py b/appservice.py index 46c9a0f..707c7ea 100644 --- a/appservice.py +++ b/appservice.py @@ -41,7 +41,7 @@ def on_receive_events(transaction): token = app.config['MATRIX_PNUT_TOKEN'] text = "* " + get_displayname(event["user_id"]) + " " + event['content']['body'] elif event['content']['msgtype'] == 'm.image': - imgurl = app.config['MATRIX_HOST'] + '/_matrix/media/r0/download/' + jevent['content']['url'][6:] + imgurl = app.config['MATRIX_HOST'] + '/_matrix/media/r0/download/' + event['content']['url'][6:] if user: token = user.pnut_token text = ""