mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 17:05:51 -05:00
35 lines
665 B
Markdown
35 lines
665 B
Markdown
|
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.
|
||
|
|
||
|
#### Spec
|
||
|
|
||
|
```
|
||
|
tag: content-warning
|
||
|
options:
|
||
|
- [reason]: optional
|
||
|
```
|
||
|
|
||
|
#### Example
|
||
|
|
||
|
```json
|
||
|
{
|
||
|
"pubkey": "<pub-key>",
|
||
|
"created_at": 1000000000,
|
||
|
"kind": 1,
|
||
|
"tags": [
|
||
|
["t", "hastag"],
|
||
|
["content-warning", "reason"] /* reason is optional */
|
||
|
],
|
||
|
"content": "sensitive content with #hastag\n",
|
||
|
"id": "<event-id>"
|
||
|
}
|
||
|
```
|