Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Webmentions from Bluesky posts with GIFs contain no content #1844

Open
davidcelis opened this issue Nov 17, 2024 · 3 comments
Open

Webmentions from Bluesky posts with GIFs contain no content #1844

davidcelis opened this issue Nov 17, 2024 · 3 comments

Comments

@davidcelis
Copy link

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:

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.

@snarfed
Copy link
Owner

snarfed commented Nov 17, 2024

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

@davidcelis
Copy link
Author

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

@snarfed
Copy link
Owner

snarfed commented Nov 17, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants