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/i18n.js | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/i18n.js') diff --git a/src/i18n.js b/src/i18n.js index e078677..7f3dfc0 100644 --- a/src/i18n.js +++ b/src/i18n.js @@ -435,6 +435,17 @@ const STR = { postMuteThread: 'Mute this thread', postUnmuteThread: 'Unmute this thread', postReport: 'Report…', + postEdit: 'Edit', + postEditTitle: 'Edit post', + postEditHelp: 'The edit is published beside the original (kind 1010). Apps that read edits show the new text; others keep showing what you first wrote.', + postEditedTag: 'edited', + postEditedToast: 'Post edited', + postDelete: 'Delete', + postDeleteTitle: 'Delete this post?', + postDeleteHelp: 'A deletion request goes to the relays (NIP-09). Most honour it and apps hide the post, but anyone who already copied it may keep it.', + postDeletedToast: 'Post deleted', + postDeletedNote: 'This post was deleted by its author.', + postNotYours: 'This post was signed by a key that isn’t signed in here', reportTitle: 'Report this post', reportHelp: 'A report is public (NIP-56). People who follow you see this post folded; the post is hidden for you.', reportSpam: 'Spam', -- cgit v1.2.3