mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-23 08:55:52 -05:00
Add reviews NIP
This commit is contained in:
parent
4438b892d8
commit
c2e92f053f
50
85.md
Normal file
50
85.md
Normal file
|
@ -0,0 +1,50 @@
|
||||||
|
NIP-85
|
||||||
|
======
|
||||||
|
|
||||||
|
Reviews
|
||||||
|
-------
|
||||||
|
|
||||||
|
`draft` `optional` `author:staab`
|
||||||
|
|
||||||
|
Kind `1986` MAY be used to leave a review with optional ratings.
|
||||||
|
|
||||||
|
The `content` field SHOULD include a human-readable review.
|
||||||
|
|
||||||
|
The review event MUST include one or more `e`, `a`, `p`, `t`, or `r` tags indicating
|
||||||
|
the object of the review. This allows for reviews of events, people, topics, and relays
|
||||||
|
or external resources. As with NIP-01, a relay hint SHOULD be included when using `e` and
|
||||||
|
`p` tags.
|
||||||
|
|
||||||
|
Tags MAY contain additional `rating` tags each of which should have a `value` between 0 and 1,
|
||||||
|
and an optional `mark` specifying an attribute of the thing being reviewed.
|
||||||
|
|
||||||
|
Examples
|
||||||
|
--------
|
||||||
|
|
||||||
|
A relay review with rating metadata.
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"kind": 1986,
|
||||||
|
"content": "This relay is fast!",
|
||||||
|
"tags": [
|
||||||
|
["rating", "0.8"],
|
||||||
|
["rating", "0.2", "smell"],
|
||||||
|
["rating", "1", "service"],
|
||||||
|
["r", <relay_url>]
|
||||||
|
],
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
A review of a podcast episode.
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"kind": 1986,
|
||||||
|
"content": "This was a great episode.",
|
||||||
|
"tags": [
|
||||||
|
["rating", "1"],
|
||||||
|
["r", <podcast guid in a standard format>]
|
||||||
|
],
|
||||||
|
}
|
||||||
|
```
|
Loading…
Reference in New Issue
Block a user