mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 08:25:53 -05:00
Add example to NIP-32 to support tagging multiple entities with multiple labels
This commit is contained in:
parent
a9f2c6a2f1
commit
621340e267
30
32.md
30
32.md
|
@ -55,8 +55,26 @@ A report that an event contains nudity.
|
||||||
{
|
{
|
||||||
"kind": 1985,
|
"kind": 1985,
|
||||||
"tags": [
|
"tags": [
|
||||||
["e", <id>]
|
["e", <id>],
|
||||||
["l", "nudity"],
|
["l", "nudity"]
|
||||||
|
],
|
||||||
|
"content": "",
|
||||||
|
...
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
A single event can apply multiple labels to multiple targets to support mass-tagging.
|
||||||
|
|
||||||
|
```json
|
||||||
|
{
|
||||||
|
"kind": 1985,
|
||||||
|
"tags": [
|
||||||
|
["e", <id>],
|
||||||
|
["p", <id>],
|
||||||
|
["t", "chickens"],
|
||||||
|
["l", "permaculture"],
|
||||||
|
["l", "permies"],
|
||||||
|
["l", "farming"]
|
||||||
],
|
],
|
||||||
"content": "",
|
"content": "",
|
||||||
...
|
...
|
||||||
|
@ -71,7 +89,7 @@ A suggestion that multiple pubkeys be associated with the `permies` topic.
|
||||||
"tags": [
|
"tags": [
|
||||||
["l", "#t/permies"],
|
["l", "#t/permies"],
|
||||||
["p", <pubkey1>],
|
["p", <pubkey1>],
|
||||||
["p", <pubkey2>],
|
["p", <pubkey2>]
|
||||||
],
|
],
|
||||||
"content": "",
|
"content": "",
|
||||||
...
|
...
|
||||||
|
@ -89,7 +107,7 @@ that's the case.
|
||||||
["l", "#t/bitcoin"],
|
["l", "#t/bitcoin"],
|
||||||
["r", <relay_url>],
|
["r", <relay_url>],
|
||||||
["quality", 0.7],
|
["quality", 0.7],
|
||||||
["confidence", 0.2],
|
["confidence", 0.2]
|
||||||
],
|
],
|
||||||
"content": "I think this relay is mostly just bitcoiners.",
|
"content": "I think this relay is mostly just bitcoiners.",
|
||||||
...
|
...
|
||||||
|
@ -104,7 +122,7 @@ A plain review of a relay.
|
||||||
"tags": [
|
"tags": [
|
||||||
["l", "review"],
|
["l", "review"],
|
||||||
["r", <relay_url>],
|
["r", <relay_url>],
|
||||||
["quality", 0.1],
|
["quality", 0.1]
|
||||||
],
|
],
|
||||||
"content": "This relay is full of mean people.",
|
"content": "This relay is full of mean people.",
|
||||||
...
|
...
|
||||||
|
@ -121,7 +139,7 @@ this spec provides for overlaying structured metadata on top of nostr.
|
||||||
"tags": [
|
"tags": [
|
||||||
["l", "lightning/channel"],
|
["l", "lightning/channel"],
|
||||||
["p", <pubkey1>],
|
["p", <pubkey1>],
|
||||||
["p", <pubkey2>],
|
["p", <pubkey2>]
|
||||||
],
|
],
|
||||||
"content": "<channel_id>",
|
"content": "<channel_id>",
|
||||||
...
|
...
|
||||||
|
|
Loading…
Reference in New Issue
Block a user