diff options
| author | Pablo Fernandez <p@f7z.io> | 2023-11-23 17:52:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-23 17:52:48 +0200 |
| commit | 60256a62675a165c4d4fd9811a19a9cbf6a9e7fd (patch) | |
| tree | 5c450154d373caafc37f324dd01e20338308c9d6 /36.md | |
| parent | 43d50ee42409252a1313928cd437d55fd7bf7bf4 (diff) | |
| parent | 7822a8b12670312aff104ddc03066425882f739d (diff) | |
Merge branch 'master' into nip88
Diffstat (limited to '36.md')
| -rw-r--r-- | 36.md | 28 |
1 files changed, 14 insertions, 14 deletions
| @@ -4,7 +4,7 @@ NIP-36 | |||
| 4 | Sensitive Content / Content Warning | 4 | Sensitive Content / Content Warning |
| 5 | ----------------------------------- | 5 | ----------------------------------- |
| 6 | 6 | ||
| 7 | `draft` `optional` `author:fernandolguevara` | 7 | `draft` `optional` |
| 8 | 8 | ||
| 9 | The `content-warning` tag enables users to specify if the event's content needs to be approved by readers to be shown. | 9 | The `content-warning` tag enables users to specify if the event's content needs to be approved by readers to be shown. |
| 10 | Clients can hide the content until the user acts on it. | 10 | Clients can hide the content until the user acts on it. |
| @@ -24,18 +24,18 @@ options: | |||
| 24 | 24 | ||
| 25 | ```json | 25 | ```json |
| 26 | { | 26 | { |
| 27 | "pubkey": "<pub-key>", | 27 | "pubkey": "<pub-key>", |
| 28 | "created_at": 1000000000, | 28 | "created_at": 1000000000, |
| 29 | "kind": 1, | 29 | "kind": 1, |
| 30 | "tags": [ | 30 | "tags": [ |
| 31 | ["t", "hastag"], | 31 | ["t", "hastag"], |
| 32 | ["L", "content-warning"], | 32 | ["L", "content-warning"], |
| 33 | ["l", "reason", "content-warning"], | 33 | ["l", "reason", "content-warning"], |
| 34 | ["L", "social.nos.ontology"], | 34 | ["L", "social.nos.ontology"], |
| 35 | ["l", "NS-nud", "social.nos.ontology"], | 35 | ["l", "NS-nud", "social.nos.ontology"], |
| 36 | ["content-warning", "reason"] /* reason is optional */ | 36 | ["content-warning", "<optional reason>"] |
| 37 | ], | 37 | ], |
| 38 | "content": "sensitive content with #hastag\n", | 38 | "content": "sensitive content with #hastag\n", |
| 39 | "id": "<event-id>" | 39 | "id": "<event-id>" |
| 40 | } | 40 | } |
| 41 | ``` | 41 | ``` |