Open places and their photo from shared event links #131

Merged
raucao merged 1 commits from feature/nip-89-app-handler into master 2026-11-28 10:08:11 +00:00
Owner

Add an /e/:event_id route that resolves a NIP-19 event reference to its place and opens it. It accepts a nevent (including relay hints), a note, an naddr, a raw 64-hex event id, an optional nostr: prefix, and full permalinks (resolved via the last path segment). The event's i tag gives the place, which is opened through the existing place route.

When the linked event is a place photo, the place details carousel focuses it, carried through a ?photo=<event-id> query param on the place URL.

It also fixes place photo loading: the selected place's #i subscription now stays open instead of completing on the first relay's EOSE. Previously the request could finish right after the fastest relay (the submission relay holds only a subset of a place's photos), so photos that live on a slower relay were dropped, e.g. a deep link that only shows one photo until the page is reloaded.

Tests cover the pointer parser, the /e/ route, the carousel focus, and the live place-photo subscription.

Add an `/e/:event_id` route that resolves a NIP-19 event reference to its place and opens it. It accepts a `nevent` (including relay hints), a `note`, an `naddr`, a raw 64-hex event id, an optional `nostr:` prefix, and full permalinks (resolved via the last path segment). The event's `i` tag gives the place, which is opened through the existing place route. When the linked event is a place photo, the place details carousel focuses it, carried through a `?photo=<event-id>` query param on the place URL. It also fixes place photo loading: the selected place's `#i` subscription now stays open instead of completing on the first relay's EOSE. Previously the request could finish right after the fastest relay (the submission relay holds only a subset of a place's photos), so photos that live on a slower relay were dropped, e.g. a deep link that only shows one photo until the page is reloaded. Tests cover the pointer parser, the `/e/` route, the carousel focus, and the live place-photo subscription.
raucao added 1 commit 2026-11-28 09:50:42 +00:00
Open places and their photo from shared event links
CI / Lint (pull_request) Successful in 52s
CI / Test (pull_request) Successful in 1m13s
Release Drafter / Update release notes draft (pull_request) Successful in 14s
4d5e36f4f8
Add an /e/:event_id route that resolves a NIP-19 event reference (nevent
with relay hints, note, naddr, raw hex id, an optional nostr: prefix, or a
full permalink) to the event, reads its i tag and opens the place. When the
event is a place photo, focus it in the place details carousel via a
?photo= query param.

Also keep the selected place's photo subscription open instead of completing
on the first relay's EOSE, so photos that live on a slower relay are no
longer dropped (the submission relay holds only a subset).
raucao added the bugfeaturenostrperformanceui/ux labels 2026-11-28 10:07:59 +00:00
raucao merged commit ba782b7f57 into master 2026-11-28 10:08:11 +00:00
raucao deleted branch feature/nip-89-app-handler 2026-11-28 10:08:11 +00:00
Sign in to join this conversation.