Add k tag to deletions

This commit is contained in:
Jon Staab 2024-07-29 07:38:29 -07:00
parent 2092fdd49a
commit 985fd30cd9

8
09.md
View File

@ -6,9 +6,7 @@ Event Deletion
`draft` `optional` `draft` `optional`
A special event with kind `5`, meaning "deletion" is defined as having a list of one or more `e` tags, each referencing an event the author is requesting to be deleted. A special event with kind `5`, meaning "deletion" is defined as having a list of one or more `e` or `a` tags, each referencing an event the author is requesting to be deleted. Deletion requests SHOULD include a `k` tag for the kind of each event being deleted.
Each tag entry must contain an "e" event id and/or `a` tags intended for deletion.
The event's `content` field MAY contain a text note describing the reason for the deletion. The event's `content` field MAY contain a text note describing the reason for the deletion.
@ -21,7 +19,9 @@ For example:
"tags": [ "tags": [
["e", "dcd59..464a2"], ["e", "dcd59..464a2"],
["e", "968c5..ad7a4"], ["e", "968c5..ad7a4"],
["a", "<kind>:<pubkey>:<d-identifier>"] ["a", "<kind>:<pubkey>:<d-identifier>"],
["k", "1"],
["k", "30023"]
], ],
"content": "these posts were published by accident", "content": "these posts were published by accident",
...other fields ...other fields