From 3fc82e41449ab59991f2574de0cb619267c1c9fb Mon Sep 17 00:00:00 2001 From: Alex Gleason Date: Sun, 12 Mar 2023 00:21:19 -0600 Subject: [PATCH] Fix policy execution --- anti-duplication-policy.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/anti-duplication-policy.ts b/anti-duplication-policy.ts index d63c312..c51c3e0 100755 --- a/anti-duplication-policy.ts +++ b/anti-duplication-policy.ts @@ -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 { return { id: msg.event.id, action: 'shadowReject', - msg: `Event rejected due to duplicated content found within the last ${ANTI_DUPLICATION_TTL}ms.`, + msg: '', }; }