Add a note about PREs, update NIP 36 to point to NIP 32

This commit is contained in:
Jonathan Staab
2023-06-07 16:03:05 -07:00
parent 114302517f
commit 363d112e33
2 changed files with 19 additions and 3 deletions

7
36.md
View File

@@ -9,12 +9,15 @@ Sensitive Content / Content Warning
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](32.md) with the `content-warning` namespace to support
further qualification and querying.
#### Spec
```
tag: content-warning
options:
- [reason]: optional
- [reason]: optional
```
#### Example
@@ -26,6 +29,8 @@ options:
"kind": 1,
"tags": [
["t", "hastag"],
["L", "content-warning"],
["l", "reason", "content-warning"],
["content-warning", "reason"] /* reason is optional */
],
"content": "sensitive content with #hastag\n",