diff --git a/fixtures/policy.ts b/fixtures/policy.ts new file mode 100644 index 00000000..e44c0924 --- /dev/null +++ b/fixtures/policy.ts @@ -0,0 +1,9 @@ +import { NostrEvent, NostrRelayInfo, NostrRelayOK, NPolicy } from '@nostrify/types'; +import { HashtagPolicy } from '@nostrify/policies'; + +export default class TestPolicy implements NPolicy { + call(event: NostrEvent): Promise { + return new HashtagPolicy(['porn']).call(event); + } + info?: NostrRelayInfo | undefined; +}