aboutsummaryrefslogtreecommitdiffstats
path: root/src/i18n.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2026-10-09 09:42:16 -0700
committerAdam Soltys <[email protected]>2026-10-09 09:42:16 -0700
commit09834ebe3d22d1ed877a1e3620747d59c9c14aef (patch)
tree5c689a4727e9341bf759cc3da26d625e43dfb110 /src/i18n.js
parent4d0fc6bf4fd0494df1405899f51f9abbf5ab34a1 (diff)
downloadcoinosv3-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/i18n.js')
-rw-r--r--src/i18n.js11
1 files changed, 11 insertions, 0 deletions
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',