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