mirror of
https://gitlab.com/soapbox-pub/ditto.git
synced 2025-12-06 11:29:46 +00:00
9 lines
337 B
TypeScript
9 lines
337 B
TypeScript
import { NostrEvent, NostrRelayInfo, NostrRelayOK, NPolicy } from '@nostrify/types';
|
|
import { HashtagPolicy } from '@nostrify/policies';
|
|
|
|
export default class TestPolicy implements NPolicy {
|
|
call(event: NostrEvent): Promise<NostrRelayOK> {
|
|
return new HashtagPolicy(['porn']).call(event);
|
|
}
|
|
info?: NostrRelayInfo | undefined;
|
|
}
|