summaryrefslogtreecommitdiffstats
path: root/api4/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/file.go')
-rw-r--r--api4/file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/api4/file.go b/api4/file.go
index a8297df04..883d4f3c8 100644
--- a/api4/file.go
+++ b/api4/file.go
@@ -201,7 +201,7 @@ func getFileLink(c *Context, w http.ResponseWriter, r *http.Request) {
}
resp := make(map[string]string)
- resp["link"] = app.GeneratePublicLink(c.GetSiteURLHeader(), info)
+ resp["link"] = c.App.GeneratePublicLink(c.GetSiteURLHeader(), info)
w.Write([]byte(model.MapToJson(resp)))
}