feat: Add title to bluesky

This commit is contained in:
Daniel Lemos 2025-03-22 23:38:37 -03:00
commit c40557ff32
2 changed files with 5 additions and 1 deletions

View file

@ -99,7 +99,7 @@ def create_link_linkedin(title, url, content):
@create_link
def create_link_bluesky(title, url, content):
# https://docs.bsky.app/docs/advanced-guides/intent-links
return f"https://bsky.app/intent/compose?text={url}"
return f"https://bsky.app/intent/compose?text={title}%20{url}"
def create_share_links(content):

View file

@ -61,3 +61,7 @@ def test_share_post(tmp_folder):
share_links["reddit"]
== "https://www.reddit.com/submit?url=/test-post.html&title=Test%20post"
)
assert (
share_links["bluesky"] == "https://bsky.app/intent/compose?text=Test%20post%20/test-post.html"
)