The photo gallery's action menu now copies through the shared clipboard helper, no longer closes the gallery, and gains a "Copy share link" item.
Copying called navigator.clipboard.writeText directly, which is unavailable on insecure origins (for example a LAN dev server over plain http), so it failed there. It now goes through copyText from app/utils/share.js, which falls back to execCommand. The invoice and connection-link copy paths use the same helper now.
Copying the event ID also left the click free to bubble to the overlay's background-click handler. Because closeMenu() runs after an await, the dropdown had already unmounted by the time the event reached the handler, its detached-target check failed and the gallery closed. copyEventId now stops propagation synchronously, like the zap and delete actions.
The new "Copy share link" item copies an absolute <origin>/e/<nevent> link. The existing /e/ route resolves the event from relays, reads its i tag and opens the place with the photo focused, so recipients land directly on the photo in Marco. Both copy actions share one buildEventReference() helper, and the menu labels use sentence case.
The photo gallery's action menu now copies through the shared clipboard helper, no longer closes the gallery, and gains a "Copy share link" item.
Copying called `navigator.clipboard.writeText` directly, which is unavailable on insecure origins (for example a LAN dev server over plain http), so it failed there. It now goes through `copyText` from `app/utils/share.js`, which falls back to `execCommand`. The invoice and connection-link copy paths use the same helper now.
Copying the event ID also left the click free to bubble to the overlay's background-click handler. Because `closeMenu()` runs after an `await`, the dropdown had already unmounted by the time the event reached the handler, its detached-target check failed and the gallery closed. `copyEventId` now stops propagation synchronously, like the zap and delete actions.
The new "Copy share link" item copies an absolute `<origin>/e/<nevent>` link. The existing `/e/` route resolves the event from relays, reads its `i` tag and opens the place with the photo focused, so recipients land directly on the photo in Marco. Both copy actions share one `buildEventReference()` helper, and the menu labels use sentence case.
The photo event ID button called navigator.clipboard.writeText directly, so copying failed on insecure origins where that API is unavailable. Route it (and the invoice and connection-link copies) through app/utils/share.js copyText, which falls back to execCommand.
copyEventId also never stopped the click from bubbling. Because closeMenu() runs after an await, the dropdown unmounted before the event reached the overlay's background-click handler, whose detached-target check then closed the gallery. Stop propagation synchronously like the zap and delete actions.
The new menu item copies an absolute <origin>/e/<nevent> link. The /e/ route resolves the event from relays, reads its i tag and opens the place with the photo focused, so recipients land directly on the photo in Marco.
Extract the nevent-building logic into buildEventReference() so the raw event ID copy and the share link share one implementation, and use sentence case for the menu labels.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
The photo gallery's action menu now copies through the shared clipboard helper, no longer closes the gallery, and gains a "Copy share link" item.
Copying called
navigator.clipboard.writeTextdirectly, which is unavailable on insecure origins (for example a LAN dev server over plain http), so it failed there. It now goes throughcopyTextfromapp/utils/share.js, which falls back toexecCommand. The invoice and connection-link copy paths use the same helper now.Copying the event ID also left the click free to bubble to the overlay's background-click handler. Because
closeMenu()runs after anawait, the dropdown had already unmounted by the time the event reached the handler, its detached-target check failed and the gallery closed.copyEventIdnow stops propagation synchronously, like the zap and delete actions.The new "Copy share link" item copies an absolute
<origin>/e/<nevent>link. The existing/e/route resolves the event from relays, reads itsitag and opens the place with the photo focused, so recipients land directly on the photo in Marco. Both copy actions share onebuildEventReference()helper, and the menu labels use sentence case.Copy photo event IDs and share links reliablyto Copy photo event IDs reliably, add "Copy share link"