diff options
| -rw-r--r-- | 32.md | 15 | ||||
| -rw-r--r-- | 36.md | 7 |
2 files changed, 19 insertions, 3 deletions
| @@ -23,9 +23,13 @@ or topics respectively. As with NIP-01, a relay hint SHOULD be included when usi | |||
| 23 | Label Tag | 23 | Label Tag |
| 24 | ---- | 24 | ---- |
| 25 | 25 | ||
| 26 | This 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: | 26 | This NIP introduces a new tag `l` which denotes a label, and a new `L` tag which denotes a label namespace. |
| 27 | A label MUST include a mark matching an `L` tag. `L` tags refer to a tag type within nostr, or a nomenclature | ||
| 28 | external to nostr defined either formally or by convention. Any string can be a namespace, but publishers SHOULD | ||
| 29 | ensure they are unambiguous by using a well-defined ISO standard or reverse domain name notation. Some examples: | ||
| 27 | 30 | ||
| 28 | Namespaces 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. | 31 | Namespaces starting with `#` indicate that the label target should be associated with the label's value. |
| 32 | This 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 | |||
| 172 | Other Notes | ||
| 173 | ----------- | ||
| 174 | |||
| 175 | When using this NIP to bulk-label many targets at once, events may be deleted and a replacement | ||
| 176 | may be published. We have opted not to use parameterizable/replaceable events for this due to the | ||
| 177 | complexity in coming up with a standard `d` tag. | ||
| @@ -9,12 +9,15 @@ Sensitive Content / Content Warning | |||
| 9 | The `content-warning` tag enables users to specify if the event's content needs to be approved by readers to be shown. | 9 | The `content-warning` tag enables users to specify if the event's content needs to be approved by readers to be shown. |
| 10 | Clients can hide the content until the user acts on it. | 10 | Clients 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 | ||
| 13 | further qualification and querying. | ||
| 14 | |||
| 12 | #### Spec | 15 | #### Spec |
| 13 | 16 | ||
| 14 | ``` | 17 | ``` |
| 15 | tag: content-warning | 18 | tag: content-warning |
| 16 | options: | 19 | options: |
| 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", |