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:
Diffstat (limited to '33.md')
-rw-r--r--33.md9
1 files changed, 7 insertions, 2 deletions
diff --git a/33.md b/33.md
index db572ad..6b05bd0 100644
--- a/33.md
+++ b/33.md
@@ -10,10 +10,12 @@ This NIP adds a new event range that allows for replacement of events that have
10 10
11Implementation 11Implementation
12-------------- 12--------------
13A *parameterized replaceable event* is defined as an event with a kind `30000 <= n < 40000`. 13The value of a tag is defined as the first parameter of a tag after the tag name.
14
15A *parameterized replaceable event* is defined as an event with a kind `30000 <= n < 40000`.
14Upon 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
15replaceable event with the same kind and first `d` tag value being received, the old event 17replaceable event with the same kind and first `d` tag value being received, the old event
16SHOULD be discarded and replaced with the newer event. 18SHOULD be discarded and replaced with the newer event.
17A missing or a `d` tag with no value should be interpreted equivalent to a `d` tag with the 19A missing or a `d` tag with no value should be interpreted equivalent to a `d` tag with the
18value as an empty string. Events from the same author with any of the following `tags` 20value as an empty string. Events from the same author with any of the following `tags`
19replace each other: 21replace each other:
@@ -24,6 +26,9 @@ replace each other:
24* `"tags":[["d",""],["d","not empty"]]`: only first `d` tag is considered 26* `"tags":[["d",""],["d","not empty"]]`: only first `d` tag is considered
25* `"tags":[["d"],["d","some value"]]`: only first `d` tag is considered 27* `"tags":[["d"],["d","some value"]]`: only first `d` tag is considered
26* `"tags":[["e"]]`: same as no tags 28* `"tags":[["e"]]`: same as no tags
29* `"tags":[["d","test","1"]]`: only the value is considered (`test`)
30
31Clients SHOULD NOT use `d` tags with multiple values and SHOULD include the `d` tag even if it has no value to allow querying using the `#d` filter.
27 32
28Client Behavior 33Client Behavior
29--------------- 34---------------