upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/38.md
diff options
context:
space:
mode:
Diffstat (limited to '38.md')
-rw-r--r--38.md10
1 files changed, 6 insertions, 4 deletions
diff --git a/38.md b/38.md
index 4f2c06d..ece5e5f 100644
--- a/38.md
+++ b/38.md
@@ -3,7 +3,7 @@ NIP-38
3====== 3======
4 4
5User Statuses 5User 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
16A special event with `kind:30315` "User Status" is defined as an *optionally expiring* _parameterized replaceable event_, where the `d` tag represents the status type: 16A 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
18For example: 18For 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
45Any other status types can be used but they are not defined by this NIP. 47Any other status types can be used but they are not defined by this NIP.
46 48
47The status MAY include an `r`, `p`, `e` or `a` tag linking to a URL, profile, note, or parameterized replaceable event. 49The status MAY include an `r`, `p`, `e` or `a` tag linking to a URL, profile, note, or addressable event.
48 50
49The `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. 51The `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