In a bug report titled ‘Tweets not showing images?’, bartv noticed that tweets linking to their Discourse post weren’t displaying the first image — only a placeholder — unlike other Discourse instances. codinghorror initially suggested configuring Twitter API keys, but bartv noted this wasn’t required on another forum. techAPJ used the Twitter Card Validator and found a warning: the image URL was potentially blocked by robots.txt. Further investigation revealed that the issue affected all fresh Discourse installs and was caused by a recent regression in commit 0fd622etechAPJ. After confirmation, codinghorror approved reverting the commit, which techAPJ did. bartv asked if they could test immediately, and techAPJ explained the fix would be available after the commit landed in the tests-passed branch. By post 11, the fix was confirmed working — tweets now correctly display the first image from Discourse posts. The team thanked bartv for reporting the issue.
Is there some settings magic I need to apply to get this to work?
On a related note, is there a way to change the card format to ‘Summary Card with Large Image’? Since we’re running a graphics-oriented community this would make sense for us.
Hmm, we haven’t done that on the Sketchfab forum, which shows the images correctly. My hunch is that I’ve misconfigured something else. Also, I think the only available Twitter settings are for authentication?
WARN: The image URL https://forum-test.blendernation.com/uploads/default/optimized/1X/236bbbe9fa50f882fc710f078b22276a6cb3b974_1_690x483.jpg specified by the 'twitter:image' metatag may be restricted by the site's robots.txt file, which will prevent Twitter from fetching it.
Testing this meta topic however looks good on the validator.