mirror of
https://mau.dev/maunium/synapse.git
synced 2024-12-15 04:03:51 +01:00
return an mxc uri rather than a content_token.
This commit is contained in:
parent
0aa8c08478
commit
58fa6d3fc6
1 changed files with 3 additions and 1 deletions
|
@ -95,8 +95,10 @@ class UploadResource(BaseMediaResource):
|
|||
|
||||
yield self._generate_local_thumbnails(media_id, media_info)
|
||||
|
||||
content_uri = "mxc://%s/%s" % (self.server_name, media_id)
|
||||
|
||||
respond_with_json(
|
||||
request, 200, {"content_token": media_id}, send_cors=True
|
||||
request, 200, {"content_uri": content_uri}, send_cors=True
|
||||
)
|
||||
except CodeMessageException as e:
|
||||
logger.exception(e)
|
||||
|
|
Loading…
Reference in a new issue