upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/33.md
diff options
context:
space:
mode:
authorLeo Wandersleb <leo@leowandersleb.de>2023-03-26 12:10:29 -0300
committerfiatjaf_ <fiatjaf@gmail.com>2023-03-26 13:52:08 -0300
commitdced433f9c6f7151121f28f3824b2ee11e446ca8 (patch)
tree41a9b10198cee1719d14dd491b920548c632fa09 /33.md
parent39e3c1b926bf1bf504eb8b2176a6403f9a6b2ab9 (diff)
events cannot really be replaced
clarifying what it means to "replace an event"
Diffstat (limited to '33.md')
-rw-r--r--33.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/33.md b/33.md
index 60f3da6..10681fa 100644
--- a/33.md
+++ b/33.md
@@ -14,8 +14,10 @@ The value of a tag is defined as the first parameter of a tag after the tag name
14 14
15A *parameterized replaceable event* is defined as an event with a kind `30000 <= n < 40000`. 15A *parameterized replaceable event* is defined as an event with a kind `30000 <= n < 40000`.
16Upon a parameterized replaceable event with a newer timestamp than the currently known latest 16Upon a parameterized replaceable event with a newer timestamp than the currently known latest
17replaceable event with the same kind and first `d` tag value being received, the old event 17replaceable event with the same kind, author and first `d` tag value being received, the old event
18SHOULD be discarded and replaced with the newer event. 18SHOULD be discarded, effectively replacing what gets returned when querying for
19`author:kind:d-tag` tuples.
20
19A missing or a `d` tag with no value should be interpreted equivalent to a `d` tag with the 21A missing or a `d` tag with no value should be interpreted equivalent to a `d` tag with the
20value as an empty string. Events from the same author with any of the following `tags` 22value as an empty string. Events from the same author with any of the following `tags`
21replace each other: 23replace each other: