NIP-50: add event classification extensions

This commit is contained in:
nostr.wine 2024-03-08 11:23:22 -05:00 committed by GitHub
parent c4c9bd0057
commit d11f50bd0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

6
50.md
View File

@ -47,4 +47,8 @@ Relays SHOULD exclude spam from search results by default if they support some f
Relay MAY support these extensions:
- `include:spam` - turn off spam filtering, if it was enabled by default
- `domain:<domain>` - include events from users whose valid nip05 domain matches the domain
- `domain:<domain>` - include only events from users whose valid nip05 domain matches the domain
- `topic:<topic>` - include only events within a classified topic (short string, one to two words)
- `language:<two letter ISO 639-1 language code>` - include only events of a specified language
- `sentiment:<negative/neutral/positive>` - include only events of a specific sentiment
- `nsfw:<true/false>` - include or exclude nsfw events (default: true)