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
715 stars 52 forks source link

Bluesky: add synthetic fragments to like/repost URLs to make them unique #1600

Closed snarfed closed 11 months ago

snarfed commented 11 months ago

Originally reported in https://github.com/snarfed/bridgy/issues/1592#issuecomment-1792820692 : right now, likes and reposts use the original post's bsky.app URL as their url field, which causes problems when de-duping thinks they're all the same thing. We should append synthetic fragments to unify them. cc @JoelOtter, example:

https://github.com/snarfed/granary/blob/322ade6cc9fb5fd9444b2ddb2e7b509ceecd7bc5/granary/mastodon.py#L525

snarfed commented 11 months ago

Current example of a Bluesky like: https://brid.gy/like/bluesky/did:plc:fdme4gb7mu7zrie7peay7tst/at%253A%252F%252Fdid%253Aplc%253Afdme4gb7mu7zrie7peay7tst%252Fapp.bsky.feed.post%252F3kd347lfqkz2y/did%253Aplc%253Attzasejhoifl2wtujjhjprms

  <a class="p-name u-url" href="https://bsky.app/profile/snarfed.org/post/3kd347lfqkz2y"></a>
snarfed commented 11 months ago

Fix confirmed, that like ^ now has:

  <a class="p-name u-url" href="https://bsky.app/profile/snarfed.org/post/3kd347lfqkz2y#liked_by_did:plc:ttzasejhoifl2wtujjhjprms"></a>