Skip to content

feat: long-press a post timestamp to copy its URL - #49

Merged
lens0021 merged 1 commit into
mainfrom
feat/long-press-copy-post-url
Jun 21, 2026
Merged

feat: long-press a post timestamp to copy its URL#49
lens0021 merged 1 commit into
mainfrom
feat/long-press-copy-post-url

Conversation

@lens0021

Copy link
Copy Markdown
Collaborator

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

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
@lens0021
lens0021 merged commit 86378a1 into main Jun 21, 2026
1 check passed
@lens0021
lens0021 deleted the feat/long-press-copy-post-url branch June 21, 2026 13:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant