Skip to content

Bluesky outbound RSS and images #17

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

Open
scripting opened this issue Apr 9, 2025 · 2 comments
Open

Bluesky outbound RSS and images #17

scripting opened this issue Apr 9, 2025 · 2 comments

Comments

@scripting
Copy link
Owner

scripting commented Apr 9, 2025

There are two issues I'd like to report here.

Use enclosure element for image

An example of a Bluesky user who publishes great cartoons that totally belong everywhere. I want to include them in one of my projects but it doesn't work because the images don't come through in the feed. Some pointers.

  1. Example of a post containing an image.
  2. The RSS feed for that user's posts.
  3. Some browsers make it hard to view the source of a feed, so here's a link that gets through that.

You won't break anything if you add an enclosure element for each item with an image (only one enclosure per item btw) with the type and size of the image.

<enclosure url="https://url.of/image" type="img/png" length="82286"/>

Most feed readers will understand and do something nice with the image. And the ones who don't should ignore the enclosure. Lots of feed sources out there do it this way.

Confusing text in description

Not sure how this happens, but some item-level descriptions have mysterious text in them.

[contains quote post or other embedded content]

Here's an example.

<item>
   <link>https://bsky.app/profile/mariopro.bsky.social/post/3lmhnycmqwc2t</link>
   <description> [contains quote post or other embedded content]</description>
   <pubDate>10 Apr 2025 13:58 +0000</pubDate>
   <guid isPermaLink="false">at://did:plc:jrhiazkqht2txt7xiixad5v7/app.bsky.feed.post/3lmhnycmqwc2t</guid>
   </item>

In most feed readers the description element is displayed, and no one is looking for helpful software messages there. Users will have no idea how to interpret this. It should not be there.

jasonculverhouse added a commit to jasonculverhouse/social-app that referenced this issue Apr 11, 2025
see:
  bluesky-social/atproto#3736
  scripting/reallysimple#17

Adds some basic test cases.

I didn't address the the "quote post issues".

For images
```
<item>
  <link>
    https://localhost:8100/profile/jason.mischievous.org/post/3llzr2t3fbs2t
  </link>
  <description>
    I live in the Bay Area mand will be at Uniqlo at 5pm on Sunday I’ll report back later on the situation @dieworkwear.bsky.social
  </description>
  <pubDate>05 Apr 2025 01:16 +0000</pubDate>
  <guid isPermaLink="false">
    at://did:plc:d4yzg3vadl536rkihgygkvv6/app.bsky.feed.post/3llzr2t3fbs2t
  </guid>
  <enclosure url="https://cdn.bsky.app/img/feed_fullsize/plain/did:plc:d4yzg3vadl536rkihgygkvv6/bafkreibcupytijcm2peztqhh2qqwgezj6vxcyygn6i3hchhsaajt656kf4@jpeg" type="image/jpeg" length="665672"/>
</item>
```

for videos

```
<item>
  <link>
    https://localhost:8100/profile/jason.mischievous.org/post/3lmfyqppras23
  </link>
  <description>
    My cats are so stupid. It looks like it is going to be a fight... then "Oh, friend"...
  </description>
  <pubDate>09 Apr 2025 22:06 +0000</pubDate>
  <guid isPermaLink="false">
    at://did:plc:d4yzg3vadl536rkihgygkvv6/app.bsky.feed.post/3lmfyqppras23
  </guid>
  <enclosure url="https://video.bsky.app/watch/did%3Aplc%3Ad4yzg3vadl536rkihgygkvv6/bafkreidc6rkgxvn642qrwpejspetfynewssxa3wrwenzal7ttm7gug4xzi/playlist.m3u8" type="video/mp4" length="1071343"/>
</item>
```

Note I had to update the `bluesky-social/indigo` reference in this app to
access `Embed.EmbedVideo_View`

```
go get github.com/bluesky-social/indigo@latest
go mod tidy
```
@bnewbold
Copy link

The "[contains quote post or other embedded content]" text is included to reduce confusion. Often people make a post which is a comment on another post, and their post text could easily be misinterpreted if there is not some indication that there is "other context" not coming through.

Definitely open to linking to images! I think we need a solution/schema which works for multiple images though. If there can only be a single <enclosure> per item, we could use that for single-image posts and possibly video posts. But including just one of multiple images can cause more confusion than not including any image at all.

Both of the above are driven from experience and user feedback on social cards, what are similar to RSS in some ways.

@scripting
Copy link
Owner Author

@bnewbold -- i think we found the answer in the thread over on the atproto repo.

bluesky-social/atproto#3736 (comment)

basically the Media RSS namespace gives you a way to include multiple images in a post. it's a widely supported namespace, so it's the best fit we have.

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