diff options
| author | jiftechnify <jiftech.stlfy@gmail.com> | 2023-07-09 12:32:26 +0900 |
|---|---|---|
| committer | fiatjaf_ <fiatjaf@gmail.com> | 2023-07-09 07:17:08 -0300 |
| commit | 3a32c0fd781bb1b6e2d23eb83da9f0b56e4a233e (patch) | |
| tree | 4c341e5b595dd5013842c451889692b67f269056 /12.md | |
| parent | 141197c564d97073f0293e3b2f367f0b6b3619c2 (diff) | |
clarify case-sensitiveness of tag names
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 | --------------------------- |