Webmentions from Bluesky posts with GIFs contain no content
I got a couple webmentions for a post of mine that I syndicated to Bluesky. Two replies to that post were just GIFs, and the webmentions I got for them don't appear to have any content:
- https://bsky.app/profile/evanphx.dev/post/3lb4k6ek7ys2e
- https://bsky.app/profile/wafer.baby/post/3lb4kkb7pmk2t
If you check out the bridg.gy source URLs, you'll see that the h-entry contains no content at all. Just the p-uid, dt-published, p-author, u-url and the u-in-reply-to URLs.
Interesting, good point! GIFs are just external embeds in Bluesky records, I thought we handled those, but we don't do anything special for GIFs, so maybe we need to.
Example for your first post, at://evanphx.dev/app.bsky.feed.post/3lb4k6ek7ys2e (pruned):
{
"$type": "app.bsky.feed.post",
"createdAt": "2024-11-17T04:14:18.328Z",
"embed": {
"$type": "app.bsky.embed.external",
"external": {
"description": "ALT: a man with long hair and a beard has the words that 's a lot on his face",
"thumb": {
"$type": "blob",
"ref": {"$link": "bafkreiec76e7hexvvi2qx57e74kci7i6jffl5kdwadnv7uml4quvy6sohm"},
"mimeType": "image/jpeg",
"size": 179303
},
"title": "a man with long hair and a beard has the words that 's a lot on his face",
"uri": "https://media.tenor.com/m-uAEtLAfgsAAAAC/thats-a-lot-samus-paulicelli.gif?hh=498\u0026ww=498"
}
},
"text": ""
}
wait do they really serve that blob with a MIME type of image/jpeg 😭
Ah, that blob isn't the GIF itself, it's the thumbnail, which is a JPEG. 😁