Fix media download endpoint version
This commit is contained in:
parent
6b4adccce2
commit
2d1b3bd7f0
@ -1055,7 +1055,7 @@ func (c *Container) GetDownloadURL(uri id.ContentURI) string {
|
|||||||
if dlURL.Scheme == "" {
|
if dlURL.Scheme == "" {
|
||||||
dlURL.Scheme = "https"
|
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()
|
return dlURL.String()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user