Closed Bug 1432095 Opened 3 years ago Closed 2 years ago

OpenGraph image not loaded

Categories

(bugzilla.mozilla.org :: General, defect)

Production
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: pascalc, Assigned: kohei.yoshino)

Details

Attachments

(2 files)

Attached image screenshot
There is an og:image in the html of our bugs but if you share a link to a bug via Twitter (something I do daily), that image is not included into the Twitter card.

HTML:

<meta property="og:image" content="https://bugzilla.mozilla.org/extensions/OpenGraph/web/moz-social-bw-rgb-1200x1200.png">

The image exists:
https://bugzilla.mozilla.org/extensions/OpenGraph/web/moz-social-bw-rgb-1200x1200.png

I think that this is because we forbid bots from crawling the image, if I use a tool like https://en.ryte.com/free-tools/robots-txt/ to check robots.txt and provide the image link above I get this interpretation:

results:
The final executed rule was "Disallow: /" for User-Agent "*" 

Robots.txt that has been used
User-agent: *
Disallow: /
Crawl-delay: 30
Reference: https://developer.twitter.com/en/docs/tweets/optimize-with-cards/guides/getting-started.html

I think fixing this is easy, but I’m not sure the Mozilla logo is appropriate for `og:image`. On each bug page, we should probably use the reporter’s avatar instead, like GitHub issues. Will figure out how.
Assignee: nobody → kohei.yoshino
Let's just fix the robots.txt issue first. Pages other than show_bug.cgi need it anyway.
Status: NEW → ASSIGNED
Attached file pull request
Merged to master.
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Type: enhancement → defect
You need to log in before you can comment on or make changes to this bug.