summaryrefslogtreecommitdiffstats
path: root/api4/openGraph.go
diff options
context:
space:
mode:
Diffstat (limited to 'api4/openGraph.go')
-rw-r--r--api4/openGraph.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/api4/openGraph.go b/api4/openGraph.go
index 6ddd0d79c..c552b54d9 100644
--- a/api4/openGraph.go
+++ b/api4/openGraph.go
@@ -7,7 +7,6 @@ import (
"net/http"
l4g "github.com/alecthomas/log4go"
- "github.com/mattermost/mattermost-server/app"
"github.com/mattermost/mattermost-server/model"
"github.com/mattermost/mattermost-server/utils"
)
@@ -43,7 +42,7 @@ func getOpenGraphMetadata(c *Context, w http.ResponseWriter, r *http.Request) {
return
}
- og := app.GetOpenGraphMetadata(url)
+ og := c.App.GetOpenGraphMetadata(url)
ogJSON, err := og.ToJSON()
openGraphDataCache.AddWithExpiresInSecs(props["url"], ogJSON, 3600) // Cache would expire after 1 hour