bskyweb: extract gallery media for SEO

Posts using app.bsky.embed.gallery (Photos v2) were rendering with no
og:image and an empty JSON-LD image[] because extractPostMedia only
covered the legacy images and video embed shapes. This adds gallery
support in both the top-level embed slot and the record-with-media
media slot, preserving the byte-equality contract between og:image
and JSON-LD image[].
This commit is contained in:
Michael Black
2026-06-09 09:30:58 -05:00
parent bfbd1cef32
commit a88cfcd8fa
5 changed files with 201 additions and 6 deletions
+1 -1
View File
@@ -3,7 +3,7 @@ module github.com/bluesky-social/social-app/bskyweb
go 1.26
require (
github.com/bluesky-social/indigo v0.0.0-20260529183052-5368f55344e0
github.com/bluesky-social/indigo v0.0.0-20260605210604-af2fec94f34c
github.com/flosch/pongo2/v6 v6.0.0
github.com/ipfs/go-log v1.0.5
github.com/joho/godotenv v1.5.1