diff options
| author | hodlbod <jstaab@protonmail.com> | 2024-07-29 10:35:45 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-29 10:35:45 -0500 |
| commit | 722ac7a58695a365be0dbb6eccb33ccd7890a8c7 (patch) | |
| tree | a2633e72de731b747480b18062acf7ecda3f89e5 | |
| parent | 2092fdd49a4f9fd274b24100283d73b193cf04e7 (diff) | |
| parent | 985fd30cd98451d1311d28bf4d596d70e0c7fd6d (diff) | |
Merge pull request #1397 from coracle-social/k-delete
Add k tag to deletions
| -rw-r--r-- | 09.md | 8 |
1 files changed, 4 insertions, 4 deletions
| @@ -6,9 +6,7 @@ Event Deletion | |||
| 6 | 6 | ||
| 7 | `draft` `optional` | 7 | `draft` `optional` |
| 8 | 8 | ||
| 9 | 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. | 9 | 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. |
| 10 | |||
| 11 | Each tag entry must contain an "e" event id and/or `a` tags intended for deletion. | ||
| 12 | 10 | ||
| 13 | The event's `content` field MAY contain a text note describing the reason for the deletion. | 11 | The event's `content` field MAY contain a text note describing the reason for the deletion. |
| 14 | 12 | ||
| @@ -21,7 +19,9 @@ For example: | |||
| 21 | "tags": [ | 19 | "tags": [ |
| 22 | ["e", "dcd59..464a2"], | 20 | ["e", "dcd59..464a2"], |
| 23 | ["e", "968c5..ad7a4"], | 21 | ["e", "968c5..ad7a4"], |
| 24 | ["a", "<kind>:<pubkey>:<d-identifier>"] | 22 | ["a", "<kind>:<pubkey>:<d-identifier>"], |
| 23 | ["k", "1"], | ||
| 24 | ["k", "30023"] | ||
| 25 | ], | 25 | ], |
| 26 | "content": "these posts were published by accident", | 26 | "content": "these posts were published by accident", |
| 27 | ...other fields | 27 | ...other fields |