Fix media download endpoint version

This commit is contained in:
Tulir Asokan 2020-04-22 12:24:14 +03:00
parent 6b4adccce2
commit 2d1b3bd7f0

View File

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