mirror of
https://github.com/layer-systems/relay.git
synced 2026-06-02 16:53:01 +02:00
fix: comment out timestamp prevention policies in event rejection
This commit is contained in:
4
main.go
4
main.go
@@ -100,8 +100,8 @@ func main() {
|
||||
relay.RejectEvent = append(
|
||||
relay.RejectEvent,
|
||||
policies.ValidateKind,
|
||||
policies.PreventTimestampsInThePast(600),
|
||||
policies.PreventTimestampsInTheFuture(60),
|
||||
// policies.PreventTimestampsInThePast(600),
|
||||
// policies.PreventTimestampsInTheFuture(60),
|
||||
func(ctx context.Context, event *nostr.Event) (reject bool, msg string) {
|
||||
if event.Kind == 20001 {
|
||||
return true, "kind 20001 events are not allowed"
|
||||
|
||||
Reference in New Issue
Block a user