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: 85.md
+27-9Lines changed: 27 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,34 +6,35 @@ Reviews
6
6
7
7
This NIP describes several different types of `review` which follow a single set of conventions.
8
8
9
-
In all cases, the `content` field SHOULD include a human-readable review.
10
-
11
-
Review events' `d` tag indicates the object of the review. This MUST take the form of a [NIP 73](./73.md) id. This allows for reviews of events, people, topics, relays, or external guids without ambiguity.
9
+
In all cases, the `content` field SHOULD include a human-readable review. A review event's `d` tag indicates the object of the review.
12
10
13
11
# Ratings
14
12
15
13
Tags MAY contain additional `rating` tags each of which should have a `value` between 0 and 1,
16
14
and an optional `mark` specifying an attribute of the thing being reviewed.
17
15
18
16
# Review Kinds
17
+
19
18
## Event
20
19
21
-
Kind `31986` indicates a review of any event generated by a `pubkey`.
22
-
The `e` tag MUST be the `id` of the event.
23
-
The `p` tag MUST be the `pubkey` of the event.
20
+
Kind `31986` indicates a review of any event generated by a `pubkey`.
21
+
22
+
- The `d` tag MUST be the `id` of the event.
23
+
- The `p` tag MUST be the `pubkey` of the event.
24
24
25
25
```json
26
26
{
27
27
"kind": 31986,
28
28
"content": "Always publishing quality information about breaking news all over the world.",
29
29
...
30
30
"tags": [
31
-
["d", `<event id>:<pubkey>`]
32
-
["e", "dcd59..464a2"]
33
-
["p", "968c5..ad7a4"],
31
+
["d", "<event-id>"]
32
+
["p", "<pubkey>"],
34
33
["rating", "0.8"]
35
34
],
36
35
}
36
+
```
37
+
37
38
## Relays
38
39
39
40
Kind `31987` indicates a review of a relay. The `d` tag MUST be the url of the relay.
@@ -50,3 +51,20 @@ Kind `31987` indicates a review of a relay. The `d` tag MUST be the url of the r
50
51
],
51
52
}
52
53
```
54
+
55
+
56
+
## Books
57
+
58
+
Kind `31985` indicates a review of a book. The `d` tag MUST be a [NIP 73](./73.md) ISBN content ID.
0 commit comments