Compare with main: duplicate share-image tags still fail

Merged
LU
2d ago
+12-6

Follow-up to #1348, from a Cubic comment there. The exemption for the new share images now requires exactly one image and one alt text per og: and twitter: key, so a page with duplicate tags fails the comparison. New tests cover it; all 70 in test_rebrand_checks.py pass.

šŸ¤– Generated with Claude Code


Summary by cubic

Tightens the default share-image exemption in the rebrand comparison so pages with duplicate share-image tags are no longer silently exempted.

  • The exemption now applies only when each og: and twitter: key has exactly one image and one alt; otherwise the tags are left for the ordinary comparison, which flags the difference.
  • Added test cases with a duplicate og:image, a duplicate twitter:image, and a duplicate og:image:alt.