2022-12-01 23:41:15 +00:00
|
|
|
NIP-36
|
|
|
|
======
|
|
|
|
|
|
|
|
Sensitive Content / Content Warning
|
|
|
|
-----------------------------------
|
|
|
|
|
|
|
|
`draft` `optional` `author:fernandolguevara`
|
|
|
|
|
|
|
|
The `content-warning` tag enables users to specify if the event's content needs to be approved by readers to be shown.
|
|
|
|
Clients can hide the content until the user acts on it.
|
|
|
|
|
2023-06-07 23:09:26 +00:00
|
|
|
`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
|
2023-06-07 23:03:05 +00:00
|
|
|
further qualification and querying.
|
|
|
|
|
2022-12-01 23:41:15 +00:00
|
|
|
#### Spec
|
|
|
|
|
|
|
|
```
|
|
|
|
tag: content-warning
|
|
|
|
options:
|
2023-06-07 23:03:05 +00:00
|
|
|
- [reason]: optional
|
2022-12-01 23:41:15 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
#### Example
|
|
|
|
|
|
|
|
```json
|
|
|
|
{
|
|
|
|
"pubkey": "<pub-key>",
|
|
|
|
"created_at": 1000000000,
|
|
|
|
"kind": 1,
|
|
|
|
"tags": [
|
|
|
|
["t", "hastag"],
|
2023-06-07 23:03:05 +00:00
|
|
|
["L", "content-warning"],
|
|
|
|
["l", "reason", "content-warning"],
|
2023-06-07 23:09:26 +00:00
|
|
|
["L", "social.nos.ontology"],
|
|
|
|
["l", "NS-nud", "social.nos.ontology"],
|
2022-12-01 23:41:15 +00:00
|
|
|
["content-warning", "reason"] /* reason is optional */
|
|
|
|
],
|
|
|
|
"content": "sensitive content with #hastag\n",
|
|
|
|
"id": "<event-id>"
|
|
|
|
}
|
|
|
|
```
|