diff options
Diffstat (limited to '12.md')
| -rw-r--r-- | 12.md | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -8,7 +8,7 @@ Generic Tag Queries | |||
| 8 | 8 | ||
| 9 | Relays may support subscriptions over arbitrary tags. `NIP-01` requires relays to respond to queries for `e` and `p` tags. This NIP allows any single-letter tag present in an event to be queried. | 9 | Relays may support subscriptions over arbitrary tags. `NIP-01` requires relays to respond to queries for `e` and `p` tags. This NIP allows any single-letter tag present in an event to be queried. |
| 10 | 10 | ||
| 11 | The `<filters>` object described in `NIP-01` is expanded to contain arbitrary keys with a `#` prefix. Any single-letter key in a filter beginning with `#` is a tag query, and MUST have a value of an array of strings. The filter condition matches if the event has a tag with the same name, and there is at least one tag value in common with the filter and event. The tag name is the letter without the `#`, and the tag value is the second element. Subsequent elements are ignored for the purposes of tag queries. | 11 | The `<filters>` object described in `NIP-01` is expanded to contain arbitrary keys with a `#` prefix. Any single-letter key in a filter beginning with `#` is a tag query, and MUST have a value of an array of strings. The filter condition matches if the event has a tag with the same name, and there is at least one tag value in common with the filter and event. The tag name is the letter without the `#`, and the tag value is the second element. Subsequent elements are ignored for the purposes of tag queries. Note that tag names are case-sensitive. |
| 12 | 12 | ||
| 13 | Example Subscription Filter | 13 | Example Subscription Filter |
| 14 | --------------------------- | 14 | --------------------------- |