From 09834ebe3d22d1ed877a1e3620747d59c9c14aef Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Fri, 9 Oct 2026 09:42:16 -0700 Subject: Posts: edit and delete your own. The ⋯ menu on your post gains Edit (a kind 1010 edit beside the original — the draft NIP-41 Amethyst reads and writes; the feed, thread and quote cards show the newest text with "· edited") and Delete (a NIP-09 kind 5, after a confirmation). Edits and deletions are asked for in the same REQ as each post's tallies and its live subscription, and count only when signed by the post's own author; they're remembered between sessions (postEdits cache) so a deleted post never flashes back from a cached feed. A post signed by the wallet key before a login was linked is still signed by that key. A deleted thread root keeps its place as "deleted by its author". relay.coinos.io now accepts kind 1010. tools/post-edit-test.js MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_01Vps2H27rhbG9ZqseGfMrc3 --- src/cache-store.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cache-store.js') diff --git a/src/cache-store.js b/src/cache-store.js index dcfbad7..1257a04 100644 --- a/src/cache-store.js +++ b/src/cache-store.js @@ -30,7 +30,7 @@ const OPEN_WAIT_MS = 3000; // What lives here: rebuildable caches only. State a user would miss (read // markers, drafts, the follow list, sync outboxes) stays in localStorage, // where every tab sees every other tab's writes at once. -const WALLET_CACHES = ['profiles', 'profilesFaceless', 'reports', 'followPacks', 'profPages', 'relayLists']; +const WALLET_CACHES = ['profiles', 'profilesFaceless', 'reports', 'followPacks', 'profPages', 'relayLists', 'postEdits']; const WALLET_RE = new RegExp('^btc-wallet-cache:[0-9a-f]+:(' + WALLET_CACHES.join('|') + ')$'); const GLOBAL_KEYS = new Set([ // (btc-wallet-note-threads stays: a server-rendered note page seeds it -- cgit v1.2.3