diff --git a/block.sh b/block.sh index f341d7f..b76c9fc 100755 --- a/block.sh +++ b/block.sh @@ -1,8 +1,10 @@ #!/bin/bash - POLICY='/opt/strfry-policies/strfry-policy.ts' +POLICY='/opt/strfry-policies/strfry-policy.ts' HEX=$(nak decode $1 | jq ".pubkey" | sed 's/"//i' | sed 's/"//i') +echo $HEX > /tmp/block.txt echo "Adding $1 to block list" - sed -i "29i '$HEX'," $POLICY - sed -i "s/\'\'//g" $POLICY - sed -i "s/'',//g" $POLICY - sed -i '/^$/d' $POLICY +sed -i "29i '$HEX'," $POLICY +sed -i "s/\'\'//g" $POLICY +sed -i "s/'',//g" $POLICY +sed -i '/^$/d' $POLICY +echo $1 > /tmp/block.txt diff --git a/strfry-policy.ts b/strfry-policy.ts index 04aea92..933affb 100755 --- a/strfry-policy.ts +++ b/strfry-policy.ts @@ -26,6 +26,7 @@ tagPolicy, [pubkeyBanPolicy, [ 'f9a0cb53543584f348bdb7e14bf19066610a8e1b63c8aa83f3dd36f93f634b46', 'c9379ff536b0a33a63caaebbcbf7eaff167f23c96ae083f60978563ef502d5ec', +'86c6e8c0721355b0774fb9a64412c17399ac9aaf596c8c00563748bbefdeb6f1', '8253e78ecba9be66999333928b0974e70717fd6194cacc33f5ed90ad2f3558ec', '10146e50993c2c32cbe5377240d8f647fb56cf1f542f9d214b9a11aefa6b037e', 'f4cb9cbb74a993c5fed5140baad401f87ab592c2363903a48590f19315ee16d4',