mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-11-09 22:09:06 -05:00
NIP-36 - sensitive content / content-warning (#82)
This commit is contained in:
parent
bbc931d02d
commit
27c6652e0e
34
36.md
Normal file
34
36.md
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
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>"
|
||||||
|
}
|
||||||
|
```
|
|
@ -24,6 +24,7 @@ NIPs stand for **Nostr Implementation Possibilities**. They exist to document wh
|
||||||
- [NIP-26: Delegated Event Signing](26.md)
|
- [NIP-26: Delegated Event Signing](26.md)
|
||||||
- [NIP-28: Public Chat](28.md)
|
- [NIP-28: Public Chat](28.md)
|
||||||
- [NIP-35: User Discovery](35.md)
|
- [NIP-35: User Discovery](35.md)
|
||||||
|
- [NIP-36: Sensitive Content](36.md)
|
||||||
|
|
||||||
## Event Kinds
|
## Event Kinds
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user