snarfed / bridgy

📣 Connects your web site to social media. Likes, retweets, mentions, cross-posting, and more...
https://brid.gy
Creative Commons Zero v1.0 Universal
702 stars 51 forks source link

Bluesky: backfeed links in other people's posts #1576

Open snarfed opened 8 months ago

snarfed commented 8 months ago

@JoelOtter feature request for you: link backfeed! https://search.bsky.social/search/posts?q=https://snarfed.org returns JSON posts that include to my site. Haven't found which lexicon they match, maybe not any, but they're easy to post. It'd be awesome to handle these as mention links, like we currently do for Reddit! (And used to for Twitter, Facebook, etc)

JoelOtter commented 8 months ago

Oh nice, I kind of forgot this was a feature because we don't have it on Mastodon. Will give it a go!

snarfed commented 8 months ago

Fwiw, search.bsky.social's days are numbered, they're eventually planning to switch to official search endpoints served by the AppView:

Search updates: The search.bsky.social service, which was never a formal part of the Bluesky API (Lexicons) will be deprecated soon, with both actor (profile) and post search possible through app.bsky.* Lexicons, served by the AppView (and proxied by the PDS).

Looks like the lexicon/methods for searching posts is probably https://github.com/bluesky-social/atproto/blob/main/lexicons/app/bsky/feed/searchPosts.json , not sure if the AppView is serving that yet, but we could try.

snarfed commented 8 months ago

Evidently not yet: https://api.bsky.app/xrpc/app.bsky.feed.searchPosts?q=foo

JoelOtter commented 8 months ago

Worth putting this one on hold til things stabilise on the silo do you think?

snarfed commented 8 months ago

Probably yeah, I'd vote for stability and bug fixes first.

snarfed commented 2 weeks ago

Looks like the AppView's search endpoint is working now! eg https://api.bsky.app/xrpc/app.bsky.feed.searchPosts?q=foo

Docs: https://docs.bsky.app/docs/api/app-bsky-feed-search-posts