return an mxc uri rather than a content_token.

This commit is contained in:
Mark Haines 2014-12-15 13:53:58 +00:00
parent 0aa8c08478
commit 58fa6d3fc6
1 changed files with 3 additions and 1 deletions

View File

@ -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)