Merge pull request #1397 from coracle-social/k-delete

Add k tag to deletions
This commit is contained in:
hodlbod 2024-07-29 10:35:45 -05:00 committed by GitHub
commit 722ac7a586
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

8
09.md
View File

@ -6,9 +6,7 @@ Event Deletion
`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.
Each tag entry must contain an "e" event id and/or `a` tags intended for deletion.
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.
The event's `content` field MAY contain a text note describing the reason for the deletion.
@ -21,7 +19,9 @@ For example:
"tags": [
["e", "dcd59..464a2"],
["e", "968c5..ad7a4"],
["a", "<kind>:<pubkey>:<d-identifier>"]
["a", "<kind>:<pubkey>:<d-identifier>"],
["k", "1"],
["k", "30023"]
],
"content": "these posts were published by accident",
...other fields