You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: 01.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ As a convention, all single-letter (only english alphabet letters: a-z, A-Z) key
85
85
86
86
### Kinds
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. [NIP-10](10.md), for instance, especifies the `kind:1` text note for social media applications.
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. [NIP-10](10.md), for instance, specifies the `kind:1` text note for social media applications.
89
89
90
90
This NIP defines one basic kind:
91
91
@@ -144,7 +144,7 @@ All conditions of a filter that are specified must match for an event for it to
144
144
145
145
A `REQ` message may contain multiple filters. In this case, events that match any of the filters are to be returned, i.e., multiple filters are to be interpreted as `||` conditions.
146
146
147
-
The `limit` property of a filter is only valid for the initial query and MUST be ignored afterwards. When `limit: n` is present it is assumed that the events returned in the initial query will be the last `n` events ordered by the `created_at`. Newer events should appear first, and in the case of ties the event with the lowest id (first in lexical order) should be first. It is safe to return less events than `limit` specifies, but it is expected that relays do not return (much) more events than requested so clients don't get unnecessarily overwhelmed by data.
147
+
The `limit` property of a filter is only valid for the initial query and MUST be ignored afterwards. When `limit: n` is present it is assumed that the events returned in the initial query will be the last `n` events ordered by the `created_at`. Newer events should appear first, and in the case of ties the event with the lowest id (first in lexical order) should be first. Relays SHOULD use the `limit` value to guide how many events are returned in the initial response. Returning fewer events is acceptable, but returning (much) more should be avoided to prevent overwhelming clients.
148
148
149
149
### From relay to client: sending events and notices
`<link>` tags with `rel="alternate"` can be used to associate webpages to Nostr events, in cases where the same content is served via the two mediums (for example, a web server that exposes Markdown articles both as HTML pages and as `kind:30023' events served under itself as a relay or through some other relay). For example:
Copy file name to clipboardExpand all lines: 25.md
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,38 +7,38 @@ Reactions
7
7
8
8
`draft``optional`
9
9
10
-
A reaction is a `kind 7` event that is used to react to other events.
10
+
A reaction is a `kind 7` event that is used to indicate user reactions to other events. A
11
+
reaction's `content` field MUST include user-generated-content indicating the value of the
12
+
reaction (conventionally `+`, `-`, or an emoji).
11
13
12
-
The generic reaction, represented by the `content` set to a `+` string, SHOULD
13
-
be interpreted as a "like" or "upvote".
14
+
A reaction with `content` set to `+`or an empty string MUST be interpreted as a "like" or "upvote".
15
+
A reaction with `content` set to `-` MUST be interpreted as a "dislike" or "downvote".
14
16
15
-
A reaction with `content` set to `-` SHOULD be interpreted as a "dislike" or
16
-
"downvote". It SHOULD NOT be counted as a "like", and MAY be displayed as a
17
-
downvote or dislike on a post. A client MAY also choose to tally likes against
18
-
dislikes in a reddit-like system of upvotes and downvotes, or display them as
19
-
separate tallies.
20
-
21
-
The `content` MAY be an emoji, or [NIP-30](30.md) custom emoji in this case it MAY be interpreted as a "like" or "dislike",
22
-
or the client MAY display this emoji reaction on the post. If the `content` is an empty string then the client should
23
-
consider it a "+".
17
+
A reaction with `content` set to an emoji or [NIP-30](30.md) custom emoji SHOULD NOT be interpreted
18
+
as a "like" or "dislike". Clients MAY instead display this emoji reaction on the post.
24
19
25
20
Tags
26
21
----
27
22
28
23
There MUST be always an `e` tag set to the `id` of the event that is being reacted to. The `e` tag SHOULD include a relay hint pointing to a relay where the event being reacted to can be found. If a client decides to include other `e`, which not recommended, the target event `id` should be last of the `e` tags.
29
24
30
-
The SHOULD be a `p` tag set to the `pubkey` of the event being reacted to. If a client decides to include other `p` tags, which not recommended, the target event `pubkey` should be last the `p` tags.
25
+
There SHOULD be a `p` tag set to the `pubkey` of the event being reacted to. If a client decides to include other `p` tags, which not recommended, the target event `pubkey` should be last the `p` tags.
31
26
32
27
If the event being reacted to is an addressable event, an `a` SHOULD be included together with the `e` tag, it must be set to the coordinates (`kind:pubkey:d-tag`) of the event being reacted to.
33
28
34
29
The reaction SHOULD include a `k` tag with the stringified kind number of the reacted event as its value.
35
30
31
+
The `e` and `a` tags SHOULD include relay and pubkey hints. The `p` tags SHOULD include relay hints.
32
+
33
+
The reaction event MAY include a `k` tag with the stringified kind number of the reacted event as its value.
["about", "The domestic yak, also known as the Tartary ox, grunting ox, or hairy cattle, is a species of long-haired domesticated cattle found throughout the Himalayan region of the Indian subcontinent, the Tibetan Plateau, Gilgit-Baltistan, Tajikistan and as far north as Mongolia and Siberia."],
["description", "The domestic yak, also known as the Tartary ox, grunting ox, or hairy cattle, is a species of long-haired domesticated cattle found throughout the Himalayan region of the Indian subcontinent, the Tibetan Plateau, Gilgit-Baltistan, Tajikistan and as far north as Mongolia and Siberia."],
0 commit comments