summaryrefslogtreecommitdiffstats
path: root/app/post.go
diff options
context:
space:
mode:
authorJoramWilander <jwawilander@gmail.com>2018-07-07 12:04:18 -0400
committerJoramWilander <jwawilander@gmail.com>2018-07-07 12:04:18 -0400
commitb78b216a3c8eb354085f97f33dac5e7661ac9188 (patch)
treedc7a253730a684bc6744c0b0bf36a87944242583 /app/post.go
parent359f12db33d45b6ffade0872ddf3652a5c52f4a8 (diff)
parent9e5ec7d09d4c51e278f17f25fb6c0f3484b50a3b (diff)
downloadchat-b78b216a3c8eb354085f97f33dac5e7661ac9188.tar.gz
chat-b78b216a3c8eb354085f97f33dac5e7661ac9188.tar.bz2
chat-b78b216a3c8eb354085f97f33dac5e7661ac9188.zip
Merge branch 'master' into plugins-2
Diffstat (limited to 'app/post.go')
-rw-r--r--app/post.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/post.go b/app/post.go
index 8d94aba2e..0344d8f0d 100644
--- a/app/post.go
+++ b/app/post.go
@@ -782,6 +782,11 @@ func (a *App) GetOpenGraphMetadata(requestURL string) *opengraph.OpenGraph {
makeOpenGraphURLsAbsolute(og, requestURL)
+ // The URL should be the link the user provided in their message, not a redirected one.
+ if og.URL != "" {
+ og.URL = requestURL
+ }
+
return og
}