MM-21898 - Part 1: Generate and use an interface instead of *A… (#13840)
* Generate and use an interface instead of *App
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
66fc096768
Коммит
17523fa5d9
@@ -15,7 +15,7 @@ func getImage(c *Context, w http.ResponseWriter, r *http.Request) {
|
||||
url := r.URL.Query().Get("url")
|
||||
|
||||
if *c.App.Config().ImageProxySettings.Enable {
|
||||
c.App.ImageProxy.GetImage(w, r, url)
|
||||
c.App.ImageProxy().GetImage(w, r, url)
|
||||
} else {
|
||||
http.Redirect(w, r, url, http.StatusFound)
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user