louisgrasset / touitomamout

Touitomamout is an easy way to synchronize your Twitter's tweets 🦤 to Mastodon 🦣 and Bluesky post ☁️ (also known as Twitter to Mastodon & Bluesky crossposter)
https://hub.docker.com/r/louisgrasset/touitomamout
GNU Affero General Public License v3.0
197 stars 10 forks source link

Bluesky: Twitter previews not turned into Bluesky preview cards #123

Closed mcleinn closed 1 year ago

mcleinn commented 1 year ago

Twitter posts with link previews - that is, almost all tweets with links - are not converted into Bluesky preview cards (type app.bsky.embed.external), but instead into two Bluesky posts: first with text, second one quoting the first, with the link.

IMHO that is less readable and unnecessary, as a similar function exists. The previews will be more similar to old style Twitter previews, with headlines and descriptions. There is documentation on the ATProto protocol page on how to create previews based on OG tags: https://atproto.com/blog/create-post (example at the bottom)

screen
louisgrasset commented 1 year ago

Images The fact links are not posted with an image is right. This issue has already been reported 2 days ago (https://github.com/louisgrasset/touitomamout/issues/122)

Formatting Since the tweet text + the link are longer than the 300 chars Bluesky limit, a content split is mandatory.

Content (232 chars or something like this) then a link (about 100 chars here).

Don't forget that links t.co are converted before being posted.

mcleinn commented 1 year ago

Maybe it would be possible to put links through another URL shortener to avoid the posted message being longer than the original message? Ok, if previews work it might be unnecessary.

louisgrasset commented 1 year ago

It might be interesting too. The point here is to post on platforms that are by definition more open.

Relying on a shortener may not be the best idea even though it would let you get a single tweet in this case.

I'll look into that, but I don't want to enforce a specific tool.

mcleinn commented 1 year ago

I added both features I needed to my fork: https://github.com/louisgrasset/touitomamout/compare/main...mcleinn:touitomamout-bskyvid:main

In Bluesky, it supports both previews with links to videos & previews to links (links are then removed from chunks, empty chunks deleted) - this is just a quick fix for myself, but you might have a look

x

video preview

Thank you again for the good work!