do the same for relay lists.

This commit is contained in:
fiatjaf 2023-11-19 07:15:37 -03:00
parent 356844b43b
commit bdc401c4aa
No known key found for this signature in database
GPG Key ID: BAD43C4BE5C1A3A1

View File

@ -64,8 +64,8 @@ func main() {
relay.DeleteEvent = append(relay.DeleteEvent, db.DeleteEvent)
relay.RejectEvent = append(relay.RejectEvent,
plugins.PreventLargeTags(64),
plugins.PreventTooManyIndexableTags(6, []int{3}, nil),
plugins.PreventTooManyIndexableTags(1000, nil, []int{3}),
plugins.PreventTooManyIndexableTags(8, []int{3, 10002}, nil),
plugins.PreventTooManyIndexableTags(1000, nil, []int{3, 10002}),
plugins.RestrictToSpecifiedKinds(supportedKinds...),
rejectEventsFromUsersNotInWhitelist,
validateAndFilterReports,