aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTulir Asokan <tulir@maunium.net>2020-04-22 12:24:14 +0300
committerTulir Asokan <tulir@maunium.net>2020-04-22 12:24:14 +0300
commit2d1b3bd7f08ef1ec290e3aca59993e4c36e992db (patch)
tree5f94e57adcdecdb60490f44a75fe4632e19b6931
parent6b4adccce22b6c2ea81d9dbdd78657ea46f1acbc (diff)
Fix media download endpoint version
-rw-r--r--matrix/matrix.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/matrix/matrix.go b/matrix/matrix.go
index 303184f..722883d 100644
--- a/matrix/matrix.go
+++ b/matrix/matrix.go
@@ -1055,7 +1055,7 @@ func (c *Container) GetDownloadURL(uri id.ContentURI) string {
if dlURL.Scheme == "" {
dlURL.Scheme = "https"
}
- dlURL.Path = path.Join(dlURL.Path, "/_matrix/media/v1/download", uri.Homeserver, uri.FileID)
+ dlURL.Path = path.Join(dlURL.Path, "/_matrix/media/r0/download", uri.Homeserver, uri.FileID)
return dlURL.String()
}