Add mention of supported_nips by mikedilger

This commit is contained in:
Artur Brugeman 2023-01-24 09:03:59 +03:00 committed by GitHub
parent 086d224e1d
commit a5a4f312cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

4
50.md
View File

@ -4,7 +4,7 @@ NIP-50
Keywords Filter Keywords Filter
--------------- ---------------
`draft` `optional` `author:brugeman` `draft` `optional` `author:brugeman` `author:mikedilger`
## Abstract ## Abstract
@ -28,6 +28,8 @@ a `NOTICE` to inform the client. Future NIPs will specify behavior for other eve
A filter matches if one of the provided `keywords` matches. Each keyword string may contain several conditions - `words`, A filter matches if one of the provided `keywords` matches. Each keyword string may contain several conditions - `words`,
all the words must match for a keyword to match. The meaning of `words` depends on event kind. all the words must match for a keyword to match. The meaning of `words` depends on event kind.
Clients SHOULD use the supported_nips field to learn if a relay supports keyword filter queries.
Clients SHOULD query several relays supporting this NIP and specific kind to compensate for potentially different Clients SHOULD query several relays supporting this NIP and specific kind to compensate for potentially different
implementation details between relays (like string sanitization, etc). implementation details between relays (like string sanitization, etc).