Skip to content

Commit ac71b5a

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

File tree

1 file changed

+28
-9
lines changed

1 file changed

+28
-9
lines changed

85.md

Lines changed: 28 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,34 +6,36 @@ 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>"],
33+
["k", "1"],
3434
["rating", "0.8"]
3535
],
3636
}
37+
```
38+
3739
## Relays
3840

3941
Kind `31987` indicates a review of a relay. The `d` tag MUST be the url of the relay.
@@ -50,3 +52,20 @@ Kind `31987` indicates a review of a relay. The `d` tag MUST be the url of the r
5052
],
5153
}
5254
```
55+
56+
57+
## Books
58+
59+
Kind `31985` indicates a review of a book. The `d` tag MUST be a [NIP 73](./73.md) ISBN content ID.
60+
61+
```json
62+
{
63+
"kind": 31985,
64+
"tags": [
65+
["d","isbn:9781529100624"],
66+
["k", "isbn"],
67+
["rating", "0.8"]
68+
],
69+
"content": "Good book",
70+
}
71+
```

0 commit comments

Comments
 (0)