diff options
| -rw-r--r-- | 54.md | 33 | ||||
| -rw-r--r-- | 56.md | 1 |
2 files changed, 20 insertions, 14 deletions
| @@ -13,15 +13,20 @@ Articles are identified by lowercase, normalized ascii `d` tags. | |||
| 13 | ### Articles | 13 | ### Articles |
| 14 | ```jsonc | 14 | ```jsonc |
| 15 | { | 15 | { |
| 16 | "content": "A wiki is a hypertext publication collaboratively edited and managed by its own audience.", | 16 | "content": "A wiki is a hypertext publication collaboratively edited and managed by its own audience.", |
| 17 | "tags": [ | 17 | "tags": [ |
| 18 | [ "d", "wiki" ], | 18 | ["d", "wiki"], |
| 19 | [ "title", "Wiki" ], | 19 | ["title", "Wiki"], |
| 20 | ] | 20 | ] |
| 21 | } | 21 | } |
| 22 | ``` | 22 | ``` |
| 23 | 23 | ||
| 24 | [INSERT NORMALIZATION EXAMPLES] | 24 | ### `d` tag normalization rules |
| 25 | |||
| 26 | - Any non-letter character MUST be converted to a `-`. | ||
| 27 | - All letters MUST be converted to lowercase. | ||
| 28 | |||
| 29 | ### Content rules | ||
| 25 | 30 | ||
| 26 | The content should be Markdown, following the same rules as of [NIP-23](23.md), although it takes some extra (optional) metadata tags: | 31 | The content should be Markdown, following the same rules as of [NIP-23](23.md), although it takes some extra (optional) metadata tags: |
| 27 | 32 | ||
| @@ -88,14 +93,14 @@ Users can request other users to get their entries merged into someone else's en | |||
| 88 | 93 | ||
| 89 | ```jsonc | 94 | ```jsonc |
| 90 | { | 95 | { |
| 91 | "content": "I added information about how to make hot ice-creams", | 96 | "content": "I added information about how to make hot ice-creams", |
| 92 | "kind": 818, | 97 | "kind": 818, |
| 93 | "tags": [ | 98 | "tags": [ |
| 94 | [ "a", "30818:<destination-pubkey>:hot-ice-creams", "<relay-url>" ], | 99 | [ "a", "30818:<destination-pubkey>:hot-ice-creams", "<relay-url>" ], |
| 95 | [ "e", "<version-against-which-the-modification-was-made>", "<relay-url>' ], | 100 | [ "e", "<version-against-which-the-modification-was-made>", "<relay-url>' ], |
| 96 | [ "p", "<destination-pubkey>" ], | 101 | [ "p", "<destination-pubkey>" ], |
| 97 | [ "e", "<version-to-be-merged>", "<relay-url>", "source" ] | 102 | [ "e", "<version-to-be-merged>", "<relay-url>", "source" ] |
| 98 | ] | 103 | ] |
| 99 | } | 104 | } |
| 100 | ``` | 105 | ``` |
| 101 | 106 | ||
| @@ -26,6 +26,7 @@ A `report type` string MUST be included as the 3rd entry to the `e` or `p` tag | |||
| 26 | being reported, which consists of the following report types: | 26 | being reported, which consists of the following report types: |
| 27 | 27 | ||
| 28 | - `nudity` - depictions of nudity, porn, etc. | 28 | - `nudity` - depictions of nudity, porn, etc. |
| 29 | - `malware` - virus, trojan horse, worm, robot, spyware, adware, back door, ransomware, rootkit, kidnapper, etc. | ||
| 29 | - `profanity` - profanity, hateful speech, etc. | 30 | - `profanity` - profanity, hateful speech, etc. |
| 30 | - `illegal` - something which may be illegal in some jurisdiction | 31 | - `illegal` - something which may be illegal in some jurisdiction |
| 31 | - `spam` - spam | 32 | - `spam` - spam |