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:
Diffstat (limited to '36.md')
-rw-r--r--36.md7
1 files changed, 6 insertions, 1 deletions
diff --git a/36.md b/36.md
index 1223e53..379d40a 100644
--- a/36.md
+++ b/36.md
@@ -9,12 +9,15 @@ Sensitive Content / Content Warning
9The `content-warning` tag enables users to specify if the event's content needs to be approved by readers to be shown. 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. 10Clients can hide the content until the user acts on it.
11 11
12`l` and `L` tags MAY be also be used as defined in [NIP-32](32.md) with the `content-warning` namespace to support
13further qualification and querying.
14
12#### Spec 15#### Spec
13 16
14``` 17```
15tag: content-warning 18tag: content-warning
16options: 19options:
17 - [reason]: optional 20 - [reason]: optional
18``` 21```
19 22
20#### Example 23#### Example
@@ -26,6 +29,8 @@ options:
26 "kind": 1, 29 "kind": 1,
27 "tags": [ 30 "tags": [
28 ["t", "hastag"], 31 ["t", "hastag"],
32 ["L", "content-warning"],
33 ["l", "reason", "content-warning"],
29 ["content-warning", "reason"] /* reason is optional */ 34 ["content-warning", "reason"] /* reason is optional */
30 ], 35 ],
31 "content": "sensitive content with #hastag\n", 36 "content": "sensitive content with #hastag\n",