diff options
Diffstat (limited to '36.md')
| -rw-r--r-- | 36.md | 7 |
1 files changed, 6 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` 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", |