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

Add Bluesky support as an external media publisher (via AT Protocol) #2057

Merged
merged 1 commit into from
Dec 15, 2024

Conversation

Masterjun3
Copy link
Collaborator

Bluesky is a microblogging social media service. This PR implements for Bluesky almost the same thing we had for Twitter back when Twitter was a thing: Posting about new submissions and publications.

image

The image shows there are no automatic embeds on Bluesky.

One big difference with Bluesky posts is how we have to handle things like links and embeds manually. This PR implements the handling of links, because otherwise this posting about submissions and publications would be somewhat useless.
However, I added no support for embeds, because those are a lot more difficult. As described in the website card embed docs we need to upload the image separately and link it with the title and description. This can be done at a later time.

For now, this PR should be sufficient.

The app settings need these fields in a Bluesky configuration block for this feature to work:

  • The Identifier field is for the bluesky handle. This would look like tasvideos.bsky.social, or if we already switched to a domain account it would be tasvideos.org.
  • The Password field for the password. It should ideally be an App password, so it can easily be revoked if necessary!

Oh and btw, Bluesky uses the usual access tokens and refresh tokens. However, this PR only ever uses access tokens once, and for the next post it simply create a completely new session with a new access token. This made more sense to me than keeping the refresh token alive, considering we only post like 2-3 times a day.

this supports clickable links, but there are no embeds yet. just like links, embeds need to be added manually.
@adelikat adelikat merged commit 87dcef8 into main Dec 15, 2024
1 check passed
@adelikat adelikat deleted the bluesky-media-publisher branch December 15, 2024 21:46
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

Successfully merging this pull request may close these issues.

2 participants