summary refs log tree commit diff
path: root/synapse/rest/media/v1/upload_resource.py
diff options
context:
space:
mode:
authorAndrew Morgan <1342360+anoadragon453@users.noreply.github.com>2022-09-15 13:57:16 +0100
committerGitHub <noreply@github.com>2022-09-15 12:57:16 +0000
commit918c74bfb57e3ca4d300ed9a3bfb99b99126f821 (patch)
treea5b7f41f507324e508cb29ad651f07ce945cf86d /synapse/rest/media/v1/upload_resource.py
parentKeep track when we try and fail to process a pulled event (#13589) (diff)
downloadsynapse-918c74bfb57e3ca4d300ed9a3bfb99b99126f821.tar.xz
Add a `MXCUri` class to make working with mxc uri's easier. (#13162)
Diffstat (limited to 'synapse/rest/media/v1/upload_resource.py')
-rw-r--r--synapse/rest/media/v1/upload_resource.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/rest/media/v1/upload_resource.py b/synapse/rest/media/v1/upload_resource.py

index e73e431dc9..97548b54e5 100644 --- a/synapse/rest/media/v1/upload_resource.py +++ b/synapse/rest/media/v1/upload_resource.py
@@ -101,6 +101,8 @@ class UploadResource(DirectServeJsonResource): # the default 404, as that would just be confusing. raise SynapseError(400, "Bad content") - logger.info("Uploaded content with URI %r", content_uri) + logger.info("Uploaded content with URI '%s'", content_uri) - respond_with_json(request, 200, {"content_uri": content_uri}, send_cors=True) + respond_with_json( + request, 200, {"content_uri": str(content_uri)}, send_cors=True + )