fix hardcoded url in profile lookup, issue #49
This commit is contained in:
parent
38009861be
commit
d4c4cde685
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue