Step 1 of 3
Add a content-warning tag
The author adds ["content-warning"] or ["content-warning", "<reason>"] to any event whose content readers might not want to see by surprise.
NIP-36
DraftEvents
Add a content-warning tag, with an optional reason, and clients hide the event behind a "show anyway" button until the reader chooses to see it.
Edit the form or the JSON: both stay in sync, the badge says whether the result is valid, and tapping any field explains it.
Not signed yet · Demo keys only. These personas' secret keys are public on purpose.
Select any field in the form or the JSON to see what it does.
Step 1 of 3
The author adds ["content-warning"] or ["content-warning", "<reason>"] to any event whose content readers might not want to see by surprise.
No course chapter covers this NIP yet. The editor above is the quickest way in.
L and l labels can qualify the warning for filtering.
NIP-56 reports are for flagging other people's content.
Specification text is quoted in English from the nostr-protocol/nips repository. Our explanations and the interface are translated. Source on GitHub at commit 0046368
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.
l and L tags MAY be also be used as defined in NIP-32 with the content-warning or other namespace to support
further qualification and querying.
tag: content-warning
options:
- [reason]: optional
{
"pubkey": "<pub-key>",
"created_at": 1000000000,
"kind": 1,
"tags": [
["t", "hastag"],
["L", "content-warning"],
["l", "reason", "content-warning"],
["L", "social.nos.ontology"],
["l", "NS-nud", "social.nos.ontology"],
["content-warning", "<optional reason>"]
],
"content": "sensitive content with #hastag\n",
"id": "<event-id>"
}