From 41ecd11cb5b2454ecbb3c0410da6aaf218c08e4b Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Fri, 29 Mar 2024 10:20:12 -0400 Subject: [PATCH] Clarifies the behavior when referencing a tags. --- 09.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/09.md b/09.md index ae051dda..b778dc30 100644 --- a/09.md +++ b/09.md @@ -6,9 +6,11 @@ Event Deletion `draft` `optional` -Event kind `5` describes a deletion event. It MUST contain a list of one or more `e` or `a` tags, each referencing the events the author is requesting to be deleted. +Event kind `5` describes a deletion event. It MUST contain a list of `e` or `a` tags, each referencing the events the author is requesting to be deleted. -The `.content` MAY contain the reason for the deletion. One or more `k` tags MAY be added to describe the kind of the referenced events. +`a` tags request the deletion of all past versions of a replaceable event: all versions whose `.created_at` is less or equal the deletion request's `created_at`. + +The `.content` MAY contain the reason for the deletion. `k` tags MAY be added to describe the kinds of the referenced events. ``` { @@ -17,7 +19,8 @@ The `.content` MAY contain the reason for the deletion. One or more `k` tags MAY "tags": [ ["e", "dcd59..464a2"], ["e", "968c5..ad7a4"], - ["k", ""], + ["k", ""], + ["k", ""], ["a", "::"] ], "content": "these posts were published by accident", @@ -27,8 +30,6 @@ The `.content` MAY contain the reason for the deletion. One or more `k` tags MAY Supporters MUST verify if the `pubkey` of the Deletion event is the same as the `pubkey` of the referenced events. -Deletion events referencing an `a` tag delete all the referenced events up to the deletion event's `created_at`. - Relays SHOULD delete or stop publishing any referenced events of the deletion request. Relays SHOULD continue to publish/share the deletion events indefinitely, as clients may already have the event that's intended to be deleted.