diff options
| author | Kieran <kieran@harkin.me> | 2024-10-15 11:15:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-15 11:15:54 +0100 |
| commit | 1e2f19863ca56754daa2466881eb22087a71b17d (patch) | |
| tree | 4f7be759dce290fea1d3ae10c403260b466ee16c /38.md | |
| parent | 53afaaece61f02e92b5ef9c3e9c32945c7ebf522 (diff) | |
| parent | e381b577c997b849fa544eea7dc9f08b360b4a33 (diff) | |
Merge branch 'master' into nip71-imeta
Diffstat (limited to '38.md')
| -rw-r--r-- | 38.md | 14 |
1 files changed, 8 insertions, 6 deletions
| @@ -3,7 +3,7 @@ NIP-38 | |||
| 3 | ====== | 3 | ====== |
| 4 | 4 | ||
| 5 | User Statuses | 5 | User Statuses |
| 6 | -------------- | 6 | ------------- |
| 7 | 7 | ||
| 8 | `draft` `optional` | 8 | `draft` `optional` |
| 9 | 9 | ||
| @@ -13,11 +13,11 @@ This NIP enables a way for users to share live statuses such as what music they | |||
| 13 | 13 | ||
| 14 | ## Live Statuses | 14 | ## Live Statuses |
| 15 | 15 | ||
| 16 | A special event with `kind:30315` "User Status" is defined as an *optionally expiring* _parameterized replaceable event_, where the `d` tag represents the status type: | 16 | A special event with `kind:30315` "User Status" is defined as an *optionally expiring* _addressable event_, where the `d` tag represents the status type: |
| 17 | 17 | ||
| 18 | For example: | 18 | For example: |
| 19 | 19 | ||
| 20 | ```js | 20 | ```json |
| 21 | { | 21 | { |
| 22 | "kind": 30315, | 22 | "kind": 30315, |
| 23 | "content": "Sign up for nostrasia!", | 23 | "content": "Sign up for nostrasia!", |
| @@ -26,7 +26,9 @@ For example: | |||
| 26 | ["r", "https://nostr.world"] | 26 | ["r", "https://nostr.world"] |
| 27 | ], | 27 | ], |
| 28 | } | 28 | } |
| 29 | ``` | ||
| 29 | 30 | ||
| 31 | ```json | ||
| 30 | { | 32 | { |
| 31 | "kind": 30315, | 33 | "kind": 30315, |
| 32 | "content": "Intergalatic - Beastie Boys", | 34 | "content": "Intergalatic - Beastie Boys", |
| @@ -44,7 +46,9 @@ Two common status types are defined: `general` and `music`. `general` represent | |||
| 44 | 46 | ||
| 45 | Any other status types can be used but they are not defined by this NIP. | 47 | Any other status types can be used but they are not defined by this NIP. |
| 46 | 48 | ||
| 47 | The status MAY include an `r`, `p`, `e` or `a` tag linking to a URL, profile, note, or parameterized replaceable event. | 49 | The status MAY include an `r`, `p`, `e` or `a` tag linking to a URL, profile, note, or addressable event. |
| 50 | |||
| 51 | The `content` MAY include emoji(s), or [NIP-30](30.md) custom emoji(s). If the `content` is an empty string then the client should clear the status. | ||
| 48 | 52 | ||
| 49 | # Client behavior | 53 | # Client behavior |
| 50 | 54 | ||
| @@ -57,5 +61,3 @@ Clients MAY display this next to the username on posts or profiles to provide li | |||
| 57 | * Nostr music streaming services that update your music status when you're listening | 61 | * Nostr music streaming services that update your music status when you're listening |
| 58 | * Podcasting apps that update your music status when you're listening to a podcast, with a link for others to listen as well | 62 | * Podcasting apps that update your music status when you're listening to a podcast, with a link for others to listen as well |
| 59 | * Clients can use the system media player to update playing music status | 63 | * Clients can use the system media player to update playing music status |
| 60 | |||
| 61 | The `content` MAY include emoji(s), or [NIP-30](30.md) custom emoji(s). If the `content` is an empty string then the client should clear the status. | ||