diff options
author | Erik Johnston <erik@matrix.org> | 2014-12-15 14:45:59 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-12-15 14:45:59 +0000 |
commit | 57e0e619f3ddc68673a0d7b345203b1a52ff1fa1 (patch) | |
tree | d7c45715bc9313f7602243b1cd614d95d1a24858 /synapse/media/v1/upload_resource.py | |
parent | Add beginnings of upgrade script (diff) | |
parent | Still send typing notifications to myself if I'm the only one in the room (it... (diff) | |
download | synapse-57e0e619f3ddc68673a0d7b345203b1a52ff1fa1.tar.xz |
Merge branch 'develop' of github.com:matrix-org/synapse into events_refactor
Conflicts: tests/handlers/test_room.py
Diffstat (limited to 'synapse/media/v1/upload_resource.py')
-rw-r--r-- | synapse/media/v1/upload_resource.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/media/v1/upload_resource.py b/synapse/media/v1/upload_resource.py index b2449ff03d..5645b0df46 100644 --- a/synapse/media/v1/upload_resource.py +++ b/synapse/media/v1/upload_resource.py @@ -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) |