upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/36.md
diff options
context:
space:
mode:
authorFernando López Guevara <fernando.lguevara@gmail.com>2022-12-01 20:41:15 -0300
committerGitHub <noreply@github.com>2022-12-01 20:41:15 -0300
commit27c6652e0e682dade7b1ae6b3e329c365a35ea91 (patch)
tree7bba03ede7d622687413a49f1fd9199fc975ca69 /36.md
parentbbc931d02d6233a0906b08d4fb1433db2e78ff36 (diff)
NIP-36 - sensitive content / content-warning (#82)
Diffstat (limited to '36.md')
-rw-r--r--36.md34
1 files changed, 34 insertions, 0 deletions
diff --git a/36.md b/36.md
new file mode 100644
index 0000000..1223e53
--- /dev/null
+++ b/36.md
@@ -0,0 +1,34 @@
1NIP-36
2======
3
4Sensitive Content / Content Warning
5-----------------------------------
6
7`draft` `optional` `author:fernandolguevara`
8
9The `content-warning` tag enables users to specify if the event's content needs to be approved by readers to be shown.
10Clients can hide the content until the user acts on it.
11
12#### Spec
13
14```
15tag: content-warning
16options:
17 - [reason]: optional
18```
19
20#### Example
21
22```json
23{
24 "pubkey": "<pub-key>",
25 "created_at": 1000000000,
26 "kind": 1,
27 "tags": [
28 ["t", "hastag"],
29 ["content-warning", "reason"] /* reason is optional */
30 ],
31 "content": "sensitive content with #hastag\n",
32 "id": "<event-id>"
33}
34```