upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathan Staab <shtaab@gmail.com>2023-06-07 16:03:05 -0700
committerJonathan Staab <shtaab@gmail.com>2023-06-13 09:31:15 -0700
commit363d112e335c13f4fa1c113e2418db1102c58ed5 (patch)
treea7a9b8795e9d7d7493961e4a4d6646a47d10c03b
parent114302517fa5b4ea499c5725f8a6aab675c36e24 (diff)
Add a note about PREs, update NIP 36 to point to NIP 32
-rw-r--r--32.md15
-rw-r--r--36.md7
2 files changed, 19 insertions, 3 deletions
diff --git a/32.md b/32.md
index 1939555..b572c13 100644
--- a/32.md
+++ b/32.md
@@ -23,9 +23,13 @@ or topics respectively. As with NIP-01, a relay hint SHOULD be included when usi
23Label Tag 23Label Tag
24---- 24----
25 25
26This NIP introduces a new tag `l` which denotes a label, and a new `L` tag which denotes a label namespace. A label MUST include a mark matching an `L` tag. `L` tags refer to a tag type within nostr, or a nomenclature external to nostr defined either formally or by convention. Any string can be a namespace, but publishers SHOULD ensure they are unambiguous by using a well-defined ISO standard or reverse domain name notation. Some examples: 26This NIP introduces a new tag `l` which denotes a label, and a new `L` tag which denotes a label namespace.
27A label MUST include a mark matching an `L` tag. `L` tags refer to a tag type within nostr, or a nomenclature
28external to nostr defined either formally or by convention. Any string can be a namespace, but publishers SHOULD
29ensure they are unambiguous by using a well-defined ISO standard or reverse domain name notation. Some examples:
27 30
28Namespaces starting with `#` indicate that the label target should be associated with the label's value. This is a way of attaching standard nostr tags to events, pubkeys, relays, urls, etc. 31Namespaces starting with `#` indicate that the label target should be associated with the label's value.
32This is a way of attaching standard nostr tags to events, pubkeys, relays, urls, etc.
29 33
30- `["l", "footstr", "#t"]` - the publisher thinks the given entity should have the `footstr` topic applied. 34- `["l", "footstr", "#t"]` - the publisher thinks the given entity should have the `footstr` topic applied.
31- `["l", "<pubkey>", "#p"]` - the publisher thinks the given entity is related to `<pubkey>` 35- `["l", "<pubkey>", "#p"]` - the publisher thinks the given entity is related to `<pubkey>`
@@ -164,3 +168,10 @@ Publishers can self-label by adding `l` tags to their own non-1985 events.
164 ... 168 ...
165} 169}
166``` 170```
171
172Other Notes
173-----------
174
175When using this NIP to bulk-label many targets at once, events may be deleted and a replacement
176may be published. We have opted not to use parameterizable/replaceable events for this due to the
177complexity in coming up with a standard `d` tag.
diff --git a/36.md b/36.md
index 1223e53..379d40a 100644
--- a/36.md
+++ b/36.md
@@ -9,12 +9,15 @@ Sensitive Content / Content Warning
9The `content-warning` tag enables users to specify if the event's content needs to be approved by readers to be shown. 9The `content-warning` tag enables users to specify if the event's content needs to be approved by readers to be shown.
10Clients can hide the content until the user acts on it. 10Clients can hide the content until the user acts on it.
11 11
12`l` and `L` tags MAY be also be used as defined in [NIP-32](32.md) with the `content-warning` namespace to support
13further qualification and querying.
14
12#### Spec 15#### Spec
13 16
14``` 17```
15tag: content-warning 18tag: content-warning
16options: 19options:
17 - [reason]: optional 20 - [reason]: optional
18``` 21```
19 22
20#### Example 23#### Example
@@ -26,6 +29,8 @@ options:
26 "kind": 1, 29 "kind": 1,
27 "tags": [ 30 "tags": [
28 ["t", "hastag"], 31 ["t", "hastag"],
32 ["L", "content-warning"],
33 ["l", "reason", "content-warning"],
29 ["content-warning", "reason"] /* reason is optional */ 34 ["content-warning", "reason"] /* reason is optional */
30 ], 35 ],
31 "content": "sensitive content with #hastag\n", 36 "content": "sensitive content with #hastag\n",