fix hardcoded url in profile lookup, issue #49

This commit is contained in:
Morgan McMillian 2020-03-26 07:43:58 -07:00
parent 38009861be
commit d4c4cde685

View file

@ -280,7 +280,7 @@ def delete_message(event, user):
pass pass
def get_displayname(userid): 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) r = requests.get(url)
if r.status_code == 200: if r.status_code == 200:
data = json.loads(r.text) data = json.loads(r.text)