mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-10-01 11:49:51 -04:00
return an mxc uri rather than a content_token.
This commit is contained in:
parent
0aa8c08478
commit
58fa6d3fc6
@ -95,8 +95,10 @@ class UploadResource(BaseMediaResource):
|
|||||||
|
|
||||||
yield self._generate_local_thumbnails(media_id, media_info)
|
yield self._generate_local_thumbnails(media_id, media_info)
|
||||||
|
|
||||||
|
content_uri = "mxc://%s/%s" % (self.server_name, media_id)
|
||||||
|
|
||||||
respond_with_json(
|
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:
|
except CodeMessageException as e:
|
||||||
logger.exception(e)
|
logger.exception(e)
|
||||||
|
Loading…
Reference in New Issue
Block a user