diff options
| author | Adam Soltys <[email protected]> | 2026-10-09 09:42:16 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-10-09 09:42:16 -0700 |
| commit | 09834ebe3d22d1ed877a1e3620747d59c9c14aef (patch) | |
| tree | 5c689a4727e9341bf759cc3da26d625e43dfb110 /src/cache-store.js | |
| parent | 4d0fc6bf4fd0494df1405899f51f9abbf5ab34a1 (diff) | |
| download | coinosv3-09834ebe3d22d1ed877a1e3620747d59c9c14aef.tar.gz coinosv3-09834ebe3d22d1ed877a1e3620747d59c9c14aef.zip | |
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
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Vps2H27rhbG9ZqseGfMrc3
Diffstat (limited to 'src/cache-store.js')
| -rw-r--r-- | src/cache-store.js | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
