feat: long-press a post timestamp to copy its URL - #49
Merged
Conversation
Press-and-hold (≥500ms) the relative-time link on a post card to copy the post URL and flash "Copied!", without navigating; a normal tap still opens the post. Bridgy Fed posts (e.g. bsky.brid.gy) put the original Bluesky link in `url`, which a fediverse instance can't resolve via search, so for bridged posts we copy the searchable ActivityPub `uri` (on brid.gy) instead. Clipboard failures fall back to a prompt. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VxfMbEXhsWRjjXEr5GMcF9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Press-and-hold (>=500ms) the relative-time link on a post card to copy the post URL and briefly flash "Copied!", without navigating. A normal short tap still opens the post; scrolling cancels the copy.
Bridgy Fed posts (e.g. bsky.brid.gy) expose the original Bluesky link in url (bsky.app/...), which a fediverse instance cannot resolve via search. Their ActivityPub uri lives on brid.gy and IS searchable, so for bridged posts (detected by brid.gy in the uri) we copy the uri instead of url. Normal posts copy url. Clipboard failures fall back to window.prompt.
Verified: tsc clean, web build passes, PostCard tests pass.
🤖 Generated with Claude Code