Twitter links are no longer showing up in Mattermost with a Preview box.
Steps to reproduce
Post a link to a tweet in v5.2.4
Expected behavior
Twitter links have a Preview box.
Observed behavior
We upgraded to Mattermost v5.2.4 four days ago. Twitter link previews were working fine two days, on Monday. Yesterday, on Tuesday, they mysteriously stopped working and I have not been able to find the problem.
Twitter links still work in Slack and in iMessage, so I don’t believe Twitter is the problem. Previews for Facebook, YouTube and random news articles still work fine in Mattermost. I’ve looked in System Console and “Enable Link Previews” is flagged as True, as well as “Website Link Previews” in in my personal Account Settings.
<meta property="og:title" content="फैंसी ड्रेस में रंग और नस्लभेद">
<title>फैंसी ड्रेस में रंग और नस्लभेद</title>
<meta name="twitter:title" content="फैंसी ड्रेस में रंग और नस्लभेद">
<meta property="og:title" content="Anisha on Twitter: "I know damn well there’s not a hippo roaming the streets of Chicago rn https://t.co/lUl5Ccv4Tp" / Twitter" data-rdm="">
<title>Anisha on Twitter: "I know damn well there’s not a hippo roaming the streets of Chicago rn https://t.co/lUl5Ccv4Tp" / Twitter</title>
Considering the null meta-tags, does this mean it’s a Twitter problem? Do Slack and iMessage have some sort of redundancy built-in that Mattermost doesn’t?
Do you use Image Proxy on your instance? If yes, is it configured correctly in the same way prior to the upgrade?
Are the link previews completely broken or just missing? Can you send a screenshot of what you are seeing?
Please send over a copy of the config.json with the sensitive information redacted as well as a copy of the mattermost.log during the upgrade process too.
I would be happy to, but before I do, would it be possible for someone running a Mattermost instance to check if Twitter links are previewing for them?
Do you use Image Proxy on your instance? If yes, is it configured correctly in the same way prior to the upgrade?
Are the link previews completely broken or just missing? Can you send a screenshot of what you are seeing?
Please send over a copy of the config.json with the sensitive information redacted as well as a copy of the mattermost.log during the upgrade process too.
I feel I may have confused the situation, so let me summarize: Twitter has changed how they handle their meta tags and Twitter link previews no longer work with Mattermost. I believe other chat applications are affected as well, if they depended on the same logic that Mattermost depended on.
It’s up to Mattermost to fix this, as Twitter will not. Is there somewhere to submit a bug report? Github Issues?
The team is discussing about this issue publicly in the MM-25940 bug created by Amy. While we do not have any solid dates as to when the fix is going to be out, I highly recommend you to add yourself as a watcher if you haven’t to keep yourself notified for the progress of it.
Users from Japan reported this issue, and hope that this problem will be solved. And they think that it would be better if there is a function to change the user agent for loading the OGP card.