Fix policy execution

This commit is contained in:
Alex Gleason 2023-03-12 00:21:19 -06:00
parent b9c55838b9
commit 3fc82e4144
No known key found for this signature in database
GPG Key ID: 7211D1F99744FBB7

View File

@ -1,4 +1,5 @@
#!/usr/bin/env -S deno run
#!/bin/sh
//bin/true; exec deno run -A "$0" "$@"
import { readLines } from 'https://deno.land/std@0.178.0/io/mod.ts';
import { Keydb } from 'https://deno.land/x/keydb@1.0.0/sqlite.ts';
@ -52,7 +53,7 @@ async function handleMessage(msg: InputMessage): Promise<OutputMessage> {
return {
id: msg.event.id,
action: 'shadowReject',
msg: `Event rejected due to duplicated content found within the last ${ANTI_DUPLICATION_TTL}ms.`,
msg: '',
};
}