rewording to tags presence

This commit is contained in:
Fernando López Guevara 2023-07-26 10:14:58 -03:00
parent 5f77c0e254
commit d1ec51a4a1
2 changed files with 11 additions and 6 deletions

15
100.md
View File

@ -1,19 +1,25 @@
NIP-100
=======
Querying Events by Tags Structure
Querying Events by Tags Presence
---------------------------------
`draft` `optional` `author:fernandolguevara` `requires:nip-12`
This NIP allows clients to query events from relays where a specific tag is present in the event's structure.
This NIP allows clients to query events from relays based on the presence or non-presence of specific tags.
### Presense:
The filter condition matches if there is at least one tag name in common with the filter and event.
### Non-Presence:
The filter condition matches if there is at least one tag in the filter that are not present in the event.
Example Subscription Filter
---------------------------
Below is an example filter that matches events with a `g` tag in their structure:
Below are some example filters that demonstrate tag presence and non-presence:
1. Filter to match events with a `g` tag:
```json
{
@ -21,8 +27,7 @@ Below is an example filter that matches events with a `g` tag in their structure
}
```
Other filter example that matches events with an empty/non present `e` tag in their structure:
2. Filter to match events without the presence of the `e` tag:
```json
{

View File

@ -68,7 +68,7 @@ They exist to document what may be implemented by [Nostr](https://github.com/nos
- [NIP-94: File Metadata](94.md)
- [NIP-98: HTTP Auth](98.md)
- [NIP-99: Classified Listings](99.md)
- [NIP-100: Querying Events by Tags Structure](100.md)
- [NIP-100: Querying Events by Tags Presence](100.md)
## Event Kinds