diff options
| author | fiatjaf_ <fiatjaf@gmail.com> | 2023-08-09 07:26:51 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-09 07:26:51 -0300 |
| commit | 5026747008c0a84c14079c39807296eebd409c36 (patch) | |
| tree | adbc9bf9038d776d74ad7fdd62f7b49132f5a1db /12.md | |
| parent | 9fa9045d19b93f4cbac231bff39558108a6e82ae (diff) | |
| parent | ce7e6b2100918648ec4341c5fe517d076e8d225c (diff) | |
Merge branch 'master' into vending-machine
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 | --------------------------- |