Skip to content

Commit 03e2b4a

Browse files
author
Jon Staab
committed
Make reviews replaceable events
1 parent 8fee224 commit 03e2b4a

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

85.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ 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. A single [NIP 73](./73.md) `i` tag indicates the object of the review. This allows for reviews of events, people, topics, relays, or external guids.
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.
1012

1113
# Ratings
1214

@@ -17,17 +19,17 @@ and an optional `mark` specifying an attribute of the thing being reviewed.
1719

1820
## Relays
1921

20-
Kind `1987` indicates a review of a relay:
22+
Kind `31987` indicates a review of a relay. The `d` tag MUST be the url of the relay.
2123

2224
```json
2325
{
24-
"kind": 1987,
26+
"kind": 31987,
2527
"content": "This relay is fast!",
2628
"tags": [
29+
["d", "wss://relay.example.com/"],
2730
["rating", "0.8"],
2831
["rating", "0.2", "content"],
29-
["rating", "1", "speed"],
30-
["i", "wss://relay.example.com/"]
32+
["rating", "1", "speed"]
3133
],
3234
}
3335
```

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,6 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
155155
| `1971` | Problem Tracker | [nostrocket][nostrocket] |
156156
| `1984` | Reporting | [56](56.md) |
157157
| `1985` | Label | [32](32.md) |
158-
| `1986` | Relay reviews | |
159158
| `1987` | AI Embeddings / Vector lists | [NKBIP-02] |
160159
| `2003` | Torrent | [35](35.md) |
161160
| `2004` | Torrent Comment | [35](35.md) |
@@ -239,6 +238,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
239238
| `31923` | Time-Based Calendar Event | [52](52.md) |
240239
| `31924` | Calendar | [52](52.md) |
241240
| `31925` | Calendar Event RSVP | [52](52.md) |
241+
| `31987` | Relay Review | [85](85.md) |
242242
| `31989` | Handler recommendation | [89](89.md) |
243243
| `31990` | Handler information | [89](89.md) | |
244244
| `32267` | Software Application | | |

0 commit comments

Comments
 (0)