From 27c6652e0e682dade7b1ae6b3e329c365a35ea91 Mon Sep 17 00:00:00 2001 From: Fernando López Guevara Date: Thu, 1 Dec 2022 20:41:15 -0300 Subject: NIP-36 - sensitive content / content-warning (#82) --- 36.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 36.md (limited to '36.md') diff --git a/36.md b/36.md new file mode 100644 index 0000000..1223e53 --- /dev/null +++ b/36.md @@ -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": "", + "created_at": 1000000000, + "kind": 1, + "tags": [ + ["t", "hastag"], + ["content-warning", "reason"] /* reason is optional */ + ], + "content": "sensitive content with #hastag\n", + "id": "" +} +``` -- cgit v1.2.3