mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 00:45:53 -05:00
Added Proposed Edits to the spec.
This commit is contained in:
parent
c5757ff586
commit
e260b2e785
22
37.md
22
37.md
|
@ -7,7 +7,7 @@ Editable Short Notes
|
|||
|
||||
`draft` `optional`
|
||||
|
||||
This NIP allows `.content` modification on `kind:1` short notes while keeping a history of all changes.
|
||||
This NIP allows `.content` modification of `kind:1` short notes while keeping a history of all changes.
|
||||
|
||||
`kind:1010` stores the updated content with a `e` tag pointing back to the `kind:1` id.
|
||||
|
||||
|
@ -28,3 +28,23 @@ Clients MUST check if the pubkey of the `kind:1010` is the same as the reference
|
|||
Clients SHOULD render the `.content` of the most recent `kind:1010` by `created_at`
|
||||
|
||||
Clients MAY present a history of changes over time.
|
||||
|
||||
# Collaboration
|
||||
|
||||
`kind:1010` that are not signed by the author of the `e`-tagged event are considered proposals to change.
|
||||
|
||||
```js
|
||||
{
|
||||
"kind": 1010,
|
||||
"pubkey": "<32-bytes hex-encoded public key of the event creator>",
|
||||
"tags": [
|
||||
["e", "<kind_1_event_id>"]
|
||||
["p", "<kind_1_event_pubkey>"] // notifying the author
|
||||
["summary", "<message to the author>"]
|
||||
],
|
||||
"content": "this is the proposed change from a third-party to the author",
|
||||
// ...other fields
|
||||
}
|
||||
```
|
||||
|
||||
To accept a proposal, the author signs a new `kind:1010` event with a copy of the `.content`.
|
Loading…
Reference in New Issue
Block a user