mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-07-30 14:48:32 -04:00
Add a MXCUri
class to make working with mxc uri's easier. (#13162)
This commit is contained in:
parent
957e3d74fc
commit
918c74bfb5
6 changed files with 53 additions and 74 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue