diff options
| author | hodlbod <jstaab@protonmail.com> | 2024-05-30 12:25:30 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-05-30 12:25:30 -0700 |
| commit | cb29f752e87446119ea6a5f066c6be352d8b87ca (patch) | |
| tree | a0714a2170a82437a68de50e9f78486b54d8e6a1 /01.md | |
| parent | 1dc8d1857172d74e81097f34f1f5c58bcc29ac51 (diff) | |
| parent | 5c796c19fd6330628a0b328bfcf5270cb2bc3aff (diff) | |
Merge branch 'master' into nip-72-edits
Diffstat (limited to '01.md')
| -rw-r--r-- | 01.md | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -56,7 +56,7 @@ To prevent implementation differences from creating a different event ID for the | |||
| 56 | 56 | ||
| 57 | ### Tags | 57 | ### Tags |
| 58 | 58 | ||
| 59 | Each tag is an array of strings of arbitrary size, with some conventions around them. Take a look at the example below: | 59 | Each tag is an array of one or more strings, with some conventions around them. Take a look at the example below: |
| 60 | 60 | ||
| 61 | ```jsonc | 61 | ```jsonc |
| 62 | { | 62 | { |
| @@ -87,7 +87,7 @@ As a convention, all single-letter (only english alphabet letters: a-z, A-Z) key | |||
| 87 | 87 | ||
| 88 | Kinds specify how clients should interpret the meaning of each event and the other fields of each event (e.g. an `"r"` tag may have a meaning in an event of kind 1 and an entirely different meaning in an event of kind 10002). Each NIP may define the meaning of a set of kinds that weren't defined elsewhere. This NIP defines two basic kinds: | 88 | Kinds specify how clients should interpret the meaning of each event and the other fields of each event (e.g. an `"r"` tag may have a meaning in an event of kind 1 and an entirely different meaning in an event of kind 10002). Each NIP may define the meaning of a set of kinds that weren't defined elsewhere. This NIP defines two basic kinds: |
| 89 | 89 | ||
| 90 | - `0`: **metadata**: the `content` is set to a stringified JSON object `{name: <username>, about: <string>, picture: <url, string>}` describing the user who created the event. A relay may delete older events once it gets a new one for the same pubkey. | 90 | - `0`: **metadata**: the `content` is set to a stringified JSON object `{name: <username>, about: <string>, picture: <url, string>}` describing the user who created the event. [Extra metadata fields](24.md#kind-0) may be set. A relay may delete older events once it gets a new one for the same pubkey. |
| 91 | - `1`: **text note**: the `content` is set to the **plaintext** content of a note (anything the user wants to say). Content that must be parsed, such as Markdown and HTML, should not be used. Clients should also not parse content as those. | 91 | - `1`: **text note**: the `content` is set to the **plaintext** content of a note (anything the user wants to say). Content that must be parsed, such as Markdown and HTML, should not be used. Clients should also not parse content as those. |
| 92 | 92 | ||
| 93 | And also a convention for kind ranges that allow for easier experimentation and flexibility of relay implementation: | 93 | And also a convention for kind ranges that allow for easier experimentation and flexibility of relay implementation: |