Skip to content

Commit b1432b7

Browse files
author
Jon Staab
committed
Make reviews replaceable events
1 parent 0b5afbb commit b1432b7

File tree

4 files changed

+16
-8
lines changed

4 files changed

+16
-8
lines changed

51.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@ Aside from their main identifier, the `"d"` tag, sets can optionally have a `"ti
5353
| Curation sets | 30005 | groups of videos picked by users as interesting and/or belonging to the same category | `"a"` (kind:34235 videos) |
5454
| Kind mute sets | 30007 | mute pubkeys by kinds<br>`"d"` tag MUST be the kind string | `"p"` (pubkeys) |
5555
| Interest sets | 30015 | interest topics represented by a bunch of "hashtags" | `"t"` (hashtags) |
56+
| Rating sets | 30020 | A list of [NIP 85](./85.md) rating events | `"e"`, `"a"` ([NIP 85](./85.md) rating events) |
5657
| Emoji sets | 30030 | categorized emoji groups | `"emoji"` (see [NIP-30](30.md)) |
57-
| Release artifact sets | 30063 | groups of files of a software release | `"e"` (kind:1063 [file metadata](94.md) events), `"i"` (application identifier, typically reverse domain notation), `"version"` |
58+
| Release artifact sets | 30063 | groups of files of a software release | `"e"` (kind:1063 [file metadata](94.md) events), `"i"` (application identifier, typically reverse domain notation), `"version"` |
5859

5960
## Deprecated standard lists
6061

73.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ External Content IDs
99
There are certain established global content identifiers such as [Book ISBNs](https://en.wikipedia.org/wiki/ISBN), [Podcast GUIDs](https://podcastnamespace.org/tag/guid), and [Movie ISANs](https://en.wikipedia.org/wiki/International_Standard_Audiovisual_Number) that are useful to reference in nostr events so that clients can query all the events assosiated with these ids.
1010

1111

12-
`i` tags are used for referencing these external content ids, with `k` tags representing the external content id kind so that clients can query all the events for a specific kind.
12+
`i` tags are used for referencing these external content ids, with `k` tags representing the external content id kind so that clients can query all the events for a specific kind.
1313

1414
## Supported IDs
1515

@@ -24,6 +24,11 @@ There are certain established global content identifiers such as [Book ISBNs](ht
2424
| Podcast Publishers | "podcast:publisher:guid:`<guid>`" | "podcast:publisher:guid" |
2525
| Movies | "isan:`<id, without version part>`" | "isan" |
2626
| Papers | "doi:`<id, lowercase>`" | "doi" |
27+
| Nostr Event ID | "e:`<event-id>`" | "e" |
28+
| Nostr Event Address | "a:`<address>`" | "a" |
29+
| Nostr Pubkey | "p:`<pubkey>`" | "p" |
30+
31+
Note that nostr-native IDs should only be used when avoiding a collision with other tags with the same type, for example with [NIP 85](./85.md) reviews that tag a pubkey in the review.
2732

2833
---
2934

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
@@ -131,7 +131,6 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
131131
| `1971` | Problem Tracker | [nostrocket][nostrocket] |
132132
| `1984` | Reporting | [56](56.md) |
133133
| `1985` | Label | [32](32.md) |
134-
| `1986` | Relay reviews | |
135134
| `1987` | AI Embeddings / Vector lists | [NKBIP-02] |
136135
| `2003` | Torrent | [35](35.md) |
137136
| `2004` | Torrent Comment | [35](35.md) |
@@ -202,6 +201,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
202201
| `31923` | Time-Based Calendar Event | [52](52.md) |
203202
| `31924` | Calendar | [52](52.md) |
204203
| `31925` | Calendar Event RSVP | [52](52.md) |
204+
| `31987` | Relay Review | [85](85.md) |
205205
| `31989` | Handler recommendation | [89](89.md) |
206206
| `31990` | Handler information | [89](89.md) |
207207
| `34235` | Video Event | [71](71.md) |

0 commit comments

Comments
 (0)