From c5757ff58692c4362a43993f37a543d581bb24f8 Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Wed, 28 Feb 2024 13:47:52 -0500 Subject: [PATCH] Refining the text and changing from unbound list to a regular `e` tag. --- 37.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/37.md b/37.md index 4a2b089a..45d09962 100644 --- a/37.md +++ b/37.md @@ -7,22 +7,24 @@ Editable Short Notes `draft` `optional` -This NIP adds full-history content modification directly to `kind:1` short notes. +This NIP allows `.content` modification on `kind:1` short notes while keeping a history of all changes. -`kind:1010` stores the updated content with a `n` tag pointing back to the `kind:1` id. +`kind:1010` stores the updated content with a `e` tag pointing back to the `kind:1` id. ```js { "kind": 1010, "pubkey": "<32-bytes hex-encoded public key of the event creator>", "tags": [ - ["n", ""] + ["e", ""] ], - "content": "this is a modified note", + "content": "this is a modified version of the original content", // ...other fields } ``` +Clients MUST check if the pubkey of the `kind:1010` is the same as the referenced `kind:1` + Clients SHOULD render the `.content` of the most recent `kind:1010` by `created_at` -Clients MUST check if the pubkey of the `kind:1010` is the same as the referenced `kind:1` \ No newline at end of file +Clients MAY present a history of changes over time. \ No newline at end of file