diff options
Diffstat (limited to 'app/post.go')
-rw-r--r-- | app/post.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/post.go b/app/post.go index e24018995..806263f5f 100644 --- a/app/post.go +++ b/app/post.go @@ -765,6 +765,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 } |