gitroomhq / postiz-app

📨 Schedule social media posts, measure them, exchange with other members and get a lot of help from AI 🚀
https://postiz.com
Apache License 2.0
9.74k stars 2.21k forks source link

Bluesky integration does not parse URLs add tags #394

Open Ch0wW opened 1 week ago

Ch0wW commented 1 week ago

📜 Description

When sending out an URL to the Bluesky service (such as https://google.com), it seems that nothing can be clickable on the BlueSky post due to the lack of an important feature from the protocol. As a result, the followers cannot click links posted by the poster, limiting its usage.

👟 Reproduction steps

1) Create a BlueSky post on Postiz. 2) Send any URL to your post. 3) The URL is parsed as plain text, and not as a link.

👍 Expected behavior

The URL should be parsed just fine, and users can click on it.

👎 Actual Behavior with Screenshots

image image

💻 Operating system

Linux

🤖 Node Version

I'm using Docker...

📃 Provide any additional context for the Bug.

The atproto protocol references how to add URLs to their posts. The document is refered here : https://docs.bsky.app/docs/advanced-guides/post-richtext .

👀 Have you spent some time to check if this bug has been raised before?

Are you willing to submit PR?

None

jamesread commented 4 days ago

Just found this today, and #hashtags as well, sadly :-(

I'll try a patch for this tonight. assigning to me.

Ch0wW commented 3 days ago

Yup, looks like hashtags follow the same treatment...

Thank you very much! 🙏

jamesread commented 3 days ago

Heya, fixed in PR #404 . See below for proof;

image

Are you running Postiz in a container? If so, I'll queue up a new container image for you.

Ch0wW commented 3 days ago

Heya, fixed in PR #404 . See below for proof;

image

Are you running Postiz in a container? If so, I'll queue up a new container image for you.

I indeed tested it, and it works quite well! Thank you very much! However, I might probably be picky, but it might miss one last feature to make that fully complete, and that would be the inclusion of link cards (seen here for instance: https://docs.bsky.app/docs/advanced-guides/posts#website-card-embeds ). That would probably mean to check in advance the URI, and verify if the link has all the og:title, og:description, og:image for instance.

Sorry in advance for this request... 🙏

Do you believe it might be possible to add them?

jamesread commented 2 days ago

Yeah, I saw that too when I was testing - but I didn't see that we had to fetch this client side, that's crazy.

I'll look into it when I get a moment.