Change definition of scraper in documentation

This commit is contained in:
Mike Dilger 2024-03-05 10:31:08 +13:00
parent 5a7f9fee7a
commit 6d9868d745
3 changed files with 13 additions and 19 deletions

View File

@ -114,14 +114,12 @@ user_hex_keys = []
verify_events = true
# This is a boolean indicating whether or not scraping is allowed.
# Scraping is any filter that does not match one of the following conditions:
# This is a boolean indicating whether or not scraping is allowed. Scraping is any filter
# where all of the following are true:
#
# A non-empty id list is set
# A non-empty authors list is set and a non-empty kinds list is set
# A non-empty authors list is set and at least one tag is set.
# A non-empty kinds list is set and at least one tag is set.
# Has a limit <= 10
# - `ids` is missing or empty
# - `authors` is missing or empty
# - There are no `#X` tag filters
#
# Filter that fail to match these conditions will be rejected if allow_scraping is false.
#

View File

@ -28,13 +28,11 @@ Chorus serves all events to AUTHed and authorized users.
Chorus serves all events which were authored by an authorized user.
Filters which are broad are considered scrapers and are not serviced. Filters must meet one of the following criteria:
Filters which are broad are considered scrapers and are not serviced. Scraping is any filter where all of the following are true:
- A non-empty `id` list is set
- A non-empty `authors` list is set and a non-empty `kinds` list is set
- A non-empty `authors` list is set and at least one tag is set.
- A non-empty `kinds` list is set and at least one tag is set.
- Has a limit <= 10.
- `ids` is missing or empty
- `authors` is missing or empty
- There are no `#X` tag filters
If you wish to change these rules, change the source code at `nostr.rs:screen_outgoing_event()`

View File

@ -105,13 +105,11 @@ Default is true.
### allow_scraping
This is a boolean indicating whether or not scraping is allowed. Scraping is any filter that does not match one of the following conditions:
This is a boolean indicating whether or not scraping is allowed. Scraping is any filter where all of the following are true:
- A non-empty `id` list is set
- A non-empty `authors` list is set and a non-empty `kinds` list is set
- A non-empty `authors` list is set and at least one tag is set.
- A non-empty `kinds` list is set and at least one tag is set.
- Has a limit <= 10
- `ids` is missing or empty
- `authors` is missing or empty
- There are no `#X` tag filters
Filter that fail to match these conditions will be rejected if `allow_scraping` is false.