diff options
Diffstat (limited to 'api4/openGraph.go')
-rw-r--r-- | api4/openGraph.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api4/openGraph.go b/api4/openGraph.go index e03ecd219..6ddd0d79c 100644 --- a/api4/openGraph.go +++ b/api4/openGraph.go @@ -23,7 +23,7 @@ func (api *API) InitOpenGraph() { } func getOpenGraphMetadata(c *Context, w http.ResponseWriter, r *http.Request) { - if !*utils.Cfg.ServiceSettings.EnableLinkPreviews { + if !*c.App.Config().ServiceSettings.EnableLinkPreviews { c.Err = model.NewAppError("getOpenGraphMetadata", "api.post.link_preview_disabled.app_error", nil, "", http.StatusNotImplemented) return } |