mirror of
https://github.com/tulir/gomuks.git
synced 2025-04-20 10:33:41 -05:00
Fix media download endpoint version
This commit is contained in:
parent
6b4adccce2
commit
2d1b3bd7f0
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue