mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 01:09:21 -05: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)
|
||||
|
||||
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 New Issue
Block a user