-
Notifications
You must be signed in to change notification settings - Fork 719
Add reviews NIP #879
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Add reviews NIP #879
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
| @@ -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>] | ||||
staab marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||||
| ], | ||||
| } | ||||
staab marked this conversation as resolved.
Show resolved
Hide resolved
|
||||
| ``` | ||||
|
|
||||
| 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>] | ||||
|
||||
| ], | ||||
| } | ||||
| ``` | ||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Book ReviewKind {
"kind": 31025,
"content": "Really enjoyed this book!",
"tags": [
["d", `"isbn:9780141030586" or "648370d3279993b70d7f75625d765e08ddcbb4db5262ebd2e9db0d666c0b8412"`]
["k", "isbn"]
["rating", "0.8"]
["raw", "4/5"]
["t", "heartwarming"]
["t", "captivating"]
],
} |
||||
Uh oh!
There was an error while loading. Please reload this page.