bridgy icon indicating copy to clipboard operation
bridgy copied to clipboard

Webmentions from Bluesky posts with GIFs contain no content

Open davidcelis opened this issue 1 year ago • 3 comments

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.

davidcelis avatar Nov 17 '24 05:11 davidcelis

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": ""
}

snarfed avatar Nov 17 '24 20:11 snarfed

wait do they really serve that blob with a MIME type of image/jpeg 😭

davidcelis avatar Nov 17 '24 21:11 davidcelis

Ah, that blob isn't the GIF itself, it's the thumbnail, which is a JPEG. 😁

snarfed avatar Nov 17 '24 21:11 snarfed