From b9bca36b506f8c911bec366668bfcab7cb4adff1 Mon Sep 17 00:00:00 2001 From: Padreug Date: Thu, 21 May 2026 16:01:55 +0200 Subject: [PATCH] feat(activities): edit button on activity detail page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The NIP-52 d-tag we publish for an event is the LNbits event id (set in nostr_publisher.build_nip52_event), so a single fetchMyEvents call can tell us whether the displayed activity belongs to the caller. When it does, show an Edit button next to Bookmark; clicking sets the store's editingEvent and opens the shell-mounted dialog in edit mode. This was the missing surface — users land on /activities/:id when they tap a posting, not on /events. Co-Authored-By: Claude Opus 4.7 (1M context) --- .../activities/views/ActivityDetailPage.vue | 64 +++++++++++++++++-- 1 file changed, 57 insertions(+), 7 deletions(-) diff --git a/src/modules/activities/views/ActivityDetailPage.vue b/src/modules/activities/views/ActivityDetailPage.vue index d44793d..6961391 100644 --- a/src/modules/activities/views/ActivityDetailPage.vue +++ b/src/modules/activities/views/ActivityDetailPage.vue @@ -1,5 +1,5 @@