diff options
| author | fiatjaf_ <fiatjaf@gmail.com> | 2023-06-20 15:42:47 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-20 15:42:47 -0300 |
| commit | 3893fa7f7ce695a2d1cf75c556a2b4b2d0086619 (patch) | |
| tree | 50aad1568afca993e0942dee3e4bb0ebadd37f44 /36.md | |
| parent | 9ffd3638d77f278c7946ffe8f53bf0fb3d2933b2 (diff) | |
| parent | ece0dda45be1053f673216edb9d6cd8a92035757 (diff) | |
Merge pull request #532 from staab/nip-32-labeling
Diffstat (limited to '36.md')
| -rw-r--r-- | 36.md | 9 |
1 files changed, 8 insertions, 1 deletions
| @@ -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` or other 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,10 @@ 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"], | ||
| 34 | ["L", "social.nos.ontology"], | ||
| 35 | ["l", "NS-nud", "social.nos.ontology"], | ||
| 29 | ["content-warning", "reason"] /* reason is optional */ | 36 | ["content-warning", "reason"] /* reason is optional */ |
| 30 | ], | 37 | ], |
| 31 | "content": "sensitive content with #hastag\n", | 38 | "content": "sensitive content with #hastag\n", |