filter: add content filter
Signed-off-by: William Casarin <jb55@jb55.com>
This commit is contained in:
parent
8e1bb0363f
commit
cae0393ed0
5 changed files with 77 additions and 20 deletions
|
|
@ -1,10 +1,13 @@
|
|||
|
||||
pipeline = ["protected_events", "kinds", "whitelist", "ratelimit"]
|
||||
pipeline = ["protected_events", "kinds", "content", "whitelist", "ratelimit"]
|
||||
|
||||
[filters.ratelimit]
|
||||
posts_per_minute = 8
|
||||
whitelist = ["127.0.0.1"]
|
||||
|
||||
[filters.content]
|
||||
filters = ["https://cdn.nostr.build/i/some-spammy-or-abusive-image-image.png"]
|
||||
|
||||
[filters.whitelist]
|
||||
pubkeys = ["16c21558762108afc34e4ff19e4ed51d9a48f79e0c34531efc423d21ab435e93"]
|
||||
ips = ["127.0.0.1"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue