William Casarin
|
778c5a053b
|
ratelimit: reduce the number of string allocations
not a huge deal, but this is technically a bit nicer
|
2024-11-18 11:02:52 -08:00 |
|
Daniel Saxton
|
77c2a8906c
|
ratelimit: make message configurable
Changelog-Added: Make ratelimit message configurable
Closes: https://github.com/damus-io/noteguard/pull/15
|
2024-11-18 11:02:20 -08:00 |
|
William Casarin
|
4d4c9981ef
|
forwarder: run cargo fmt
|
2024-11-18 11:01:04 -08:00 |
|
William Casarin
|
cae0393ed0
|
filter: add content filter
Signed-off-by: William Casarin <jb55@jb55.com>
|
2024-07-30 10:52:41 -07:00 |
|
William Casarin
|
15e53a116a
|
filter: add forwarder filter
Fixes: https://github.com/damus-io/noteguard/issues/10
Changelog-Added: Add forwarder filter
Signed-off-by: William Casarin <jb55@jb55.com>
|
2024-07-11 14:50:36 -07:00 |
|
William Casarin
|
c85f9cbc3d
|
filter: add kind blacklist filter
Signed-off-by: William Casarin <jb55@jb55.com>
|
2024-07-09 11:05:21 -07:00 |
|
William Casarin
|
f08e805673
|
filters/protected_events: fix clippy
Signed-off-by: William Casarin <jb55@jb55.com>
|
2024-07-09 11:05:01 -07:00 |
|
William Casarin
|
e28454ac32
|
filter: add protected_events filter
This adds support for protected events
Link: https://github.com/nostr-protocol/nips/pull/1030
Signed-off-by: William Casarin <jb55@jb55.com>
|
2024-07-09 10:14:58 -07:00 |
|
William Casarin
|
20a8773631
|
ratelimit: rename module to match filter name
less confusion
Signed-off-by: William Casarin <jb55@jb55.com>
|
2024-07-09 10:04:26 -07:00 |
|
William Casarin
|
74c90453b8
|
filter: add whitelist filter
Fixes: https://github.com/damus-io/noteguard/issues/3
Signed-off-by: William Casarin <jb55@jb55.com>
|
2024-07-09 09:53:36 -07:00 |
|
William Casarin
|
ddff59a20a
|
ratelimit: switch to token-based rate limiting
allows for N actions per minute
Changelog-Changed: Switched to token-based ratelimiting
Closes: https://github.com/damus-io/noteguard/issues/2
|
2024-07-08 14:26:06 -07:00 |
|
William Casarin
|
c951f0abb2
|
ratelimit: clarify delay second option
|
2024-07-07 22:40:29 -05:00 |
|
William Casarin
|
24a1c0dfc2
|
initial commit
|
2024-07-07 22:29:29 -05:00 |
|