buffer: Pass the homeserver to the mxc -> http api function.
This fixes #57.
This commit is contained in:
parent
4c04f6319b
commit
e9214862fe
1 changed files with 3 additions and 2 deletions
|
@ -1376,7 +1376,7 @@ class RoomBuffer(object):
|
||||||
elif isinstance(event, RoomMessageMedia):
|
elif isinstance(event, RoomMessageMedia):
|
||||||
nick = self.find_nick(event.sender)
|
nick = self.find_nick(event.sender)
|
||||||
date = server_ts_to_weechat(event.server_timestamp)
|
date = server_ts_to_weechat(event.server_timestamp)
|
||||||
http_url = Api.mxc_to_http(event.url)
|
http_url = Api.mxc_to_http(event.url, self.homeserver.geturl())
|
||||||
url = http_url if http_url else event.url
|
url = http_url if http_url else event.url
|
||||||
|
|
||||||
description = "/{}".format(event.body) if event.body else ""
|
description = "/{}".format(event.body) if event.body else ""
|
||||||
|
@ -1396,7 +1396,8 @@ class RoomBuffer(object):
|
||||||
event.url,
|
event.url,
|
||||||
event.key["k"],
|
event.key["k"],
|
||||||
event.hashes["sha256"],
|
event.hashes["sha256"],
|
||||||
event.iv
|
event.iv,
|
||||||
|
self.homeserver.geturl()
|
||||||
)
|
)
|
||||||
url = http_url if http_url else event.url
|
url = http_url if http_url else event.url
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue