Skip to content

Simple event kind policy

blee requested to merge bleetube/strfry-policies:kindpolicy into develop

KindPolicy

While strfry-policies already has a filter policy for allowing content based on a particular nostr filter, this policy rejects a list of event kinds. This enables the operator to opt-out of certain NIPs. For example,

for await (const msg of readStdin()) {
  const result = await pipeline(msg, [
    [kindPolicy, [ 4, 7, 42 ]],
...

Merge request reports

Loading