remove file download api

This commit is contained in:
2018-11-06 22:19:57 +01:00
parent 7f2d549368
commit 534c456a5b
4 changed files with 18 additions and 21 deletions

View File

@@ -49,7 +49,7 @@ type filePreview struct {
func (f filePreview) run(inf *pixelapi.FileInfo) string {
f.FileInfo = inf
f.FileURL = f.APIURL + "/file/" + f.FileInfo.ID
f.DownloadURL = f.APIURL + "/file/" + f.FileInfo.ID + "/download"
f.DownloadURL = f.APIURL + "/file/" + f.FileInfo.ID + "?download"
if strings.HasPrefix(f.FileInfo.MimeType, "image") {
return f.image()