diff options
Diffstat (limited to '38.md')
| -rw-r--r-- | 38.md | 10 |
1 files changed, 6 insertions, 4 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,7 @@ 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. |
| 48 | 50 | ||
| 49 | 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. | 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. |
| 50 | 52 | ||