Skip to content

Commit 175ff1b

Browse files
author
Jon Staab
committed
Add book reviews
1 parent c47d286 commit 175ff1b

File tree

1 file changed

+27
-9
lines changed

1 file changed

+27
-9
lines changed

85.md

Lines changed: 27 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,35 @@ Reviews
66

77
This NIP describes several different types of `review` which follow a single set of conventions.
88

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.
1210

1311
# Ratings
1412

1513
Tags MAY contain additional `rating` tags each of which should have a `value` between 0 and 1,
1614
and an optional `mark` specifying an attribute of the thing being reviewed.
1715

1816
# Review Kinds
17+
1918
## Event
2019

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.
2424

2525
```json
2626
{
2727
"kind": 31986,
2828
"content": "Always publishing quality information about breaking news all over the world.",
2929
...
3030
"tags": [
31-
["d", `<event id>:<pubkey>`]
32-
["e", "dcd59..464a2"]
33-
["p", "968c5..ad7a4"],
31+
["d", "<event-id>"]
32+
["p", "<pubkey>"],
3433
["rating", "0.8"]
3534
],
3635
}
36+
```
37+
3738
## Relays
3839

3940
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
5051
],
5152
}
5253
```
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.
59+
60+
```json
61+
{
62+
"kind": 31985,
63+
"tags": [
64+
["d","isbn:9781529100624"],
65+
["k", "isbn"],
66+
["rating", "0.8"]
67+
],
68+
"content": "Good book",
69+
}
70+
```

0 commit comments

Comments
 (0)