upleb.uk

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

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--36.md34
-rw-r--r--README.md1
2 files changed, 35 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```
diff --git a/README.md b/README.md
index 2ab449a..c12d523 100644
--- a/README.md
+++ b/README.md
@@ -24,6 +24,7 @@ NIPs stand for **Nostr Implementation Possibilities**. They exist to document wh
24- [NIP-26: Delegated Event Signing](26.md) 24- [NIP-26: Delegated Event Signing](26.md)
25- [NIP-28: Public Chat](28.md) 25- [NIP-28: Public Chat](28.md)
26- [NIP-35: User Discovery](35.md) 26- [NIP-35: User Discovery](35.md)
27- [NIP-36: Sensitive Content](36.md)
27 28
28## Event Kinds 29## Event Kinds
29 30