upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/50.md
diff options
context:
space:
mode:
Diffstat (limited to '50.md')
-rw-r--r--50.md8
1 files changed, 7 insertions, 1 deletions
diff --git a/50.md b/50.md
index 2bdf1ff..2a31cb1 100644
--- a/50.md
+++ b/50.md
@@ -26,6 +26,8 @@ Relays SHOULD interpret the query to the best of their ability and return events
26Relays SHOULD perform matching against `content` event field, and MAY perform 26Relays SHOULD perform matching against `content` event field, and MAY perform
27matching against other fields if that makes sense in the context of a specific kind. 27matching against other fields if that makes sense in the context of a specific kind.
28 28
29Results SHOULD be returned in descending order by quality of search result (as defined by the implementation),
30not by the usual `.created_at`. The `limit` filter SHOULD be applied after sorting by matching score.
29A query string may contain `key:value` pairs (two words separated by colon), these are extensions, relays SHOULD ignore 31A query string may contain `key:value` pairs (two words separated by colon), these are extensions, relays SHOULD ignore
30extensions they don't support. 32extensions they don't support.
31 33
@@ -41,9 +43,13 @@ implementation details between relays.
41Clients MAY verify that events returned by a relay match the specified query in a way that suits the 43Clients MAY verify that events returned by a relay match the specified query in a way that suits the
42client's use case, and MAY stop querying relays that have low precision. 44client's use case, and MAY stop querying relays that have low precision.
43 45
44Relays SHOULD exclude spam from search results by default if they supports some form of spam filtering. 46Relays SHOULD exclude spam from search results by default if they support some form of spam filtering.
45 47
46## Extensions 48## Extensions
47 49
48Relay MAY support these extensions: 50Relay MAY support these extensions:
49- `include:spam` - turn off spam filtering, if it was enabled by default 51- `include:spam` - turn off spam filtering, if it was enabled by default
52- `domain:<domain>` - include only events from users whose valid nip05 domain matches the domain
53- `language:<two letter ISO 639-1 language code>` - include only events of a specified language
54- `sentiment:<negative/neutral/positive>` - include only events of a specific sentiment
55- `nsfw:<true/false>` - include or exclude nsfw events (default: true)