mirror of
https://github.com/nostr-protocol/nips.git
synced 2025-03-25 17:21:52 +01:00
Merge c80e36006adb1071dedc2f83899e05b43505ca9f into 0619f370bca3485bb9c5870bc2defa03c7c3d10e
This commit is contained in:
commit
c6dd6e7789
6
01.md
6
01.md
@ -89,7 +89,11 @@ Kinds specify how clients should interpret the meaning of each event and the oth
|
||||
|
||||
This NIP defines one basic kind:
|
||||
|
||||
- `0`: **user metadata**: the `content` is set to a stringified JSON object `{name: <nickname or full name>, about: <short bio>, picture: <url of the image>}` 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.
|
||||
- `0`: **user metadata**: a basic set of metadata `tags` 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. These tags include:
|
||||
- `name`: `<nickname or full name>`
|
||||
- `about`: `<short bio>`
|
||||
- `picture`: `<url of the image>`
|
||||
- **DEPRECATED**: the `content` field has been used to store the stringified JSON of metadata fields in the format of `{name: <nickname or full name>, about: <short bio>, picture: <url of the image>}`. Clients SHOULD write metadata as both tags and legacy stringified JSON until a reasonable number of SDKs and popular clients on each operating system platform have adopted using tags on the user metadata event to avoid introducing breaking changes.
|
||||
|
||||
And also a convention for kind ranges that allow for easier experimentation and flexibility of relay implementation:
|
||||
|
||||
|
6
24.md
6
24.md
@ -11,12 +11,12 @@ This NIP keeps track of extra optional fields that can added to events which are
|
||||
kind 0
|
||||
======
|
||||
|
||||
These are extra fields not specified in NIP-01 that may be present in the stringified JSON of metadata events:
|
||||
These are extra fields not specified in NIP-01 that may be present in the tags of metadata events:
|
||||
|
||||
- `display_name`: an alternative, bigger name with richer characters than `name`. `name` should always be set regardless of the presence of `display_name` in the metadata.
|
||||
- `website`: a web URL related in any way to the event author.
|
||||
- `banner`: an URL to a wide (~1024x768) picture to be optionally displayed in the background of a profile screen.
|
||||
- `bot`: a boolean to clarify that the content is entirely or partially the result of automation, such as with chatbots or newsfeeds.
|
||||
- `bot`: a stringified boolean of "true" or "false" (case insensitive) to clarify that the content is entirely or partially the result of automation, such as with chatbots or newsfeeds.
|
||||
|
||||
### Deprecated fields
|
||||
|
||||
@ -25,6 +25,8 @@ These are fields that should be ignored or removed when found in the wild:
|
||||
- `displayName`: use `display_name` instead.
|
||||
- `username`: use `name` instead.
|
||||
|
||||
The `content` field has been used to store the stringified JSON of metadata fields. It has been deprecated in favor of using tags. Clients SHOULD write metadata as both tags and legacy stringified JSON until a reasonable number of SDKs and popular clients on each platform have adopted using tags on the user metadata event to avoid introducing breaking changes.
|
||||
|
||||
kind 3
|
||||
======
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user