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.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/50.md b/50.md
index 9d1a54c..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
@@ -47,3 +49,7 @@ Relays SHOULD exclude spam from search results by default if they support some f
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)