diff --git a/appservice.py b/appservice.py index f4e6b2c..e64ff0d 100644 --- a/appservice.py +++ b/appservice.py @@ -280,7 +280,7 @@ def delete_message(event, user): pass def get_displayname(userid): - url = "http://localhost:8008/_matrix/client/r0/profile/" + userid + url = app.config['MATRIX_HOST'] + "/_matrix/client/r0/profile/" + userid r = requests.get(url) if r.status_code == 200: data = json.loads(r.text)