Sfoglia il codice sorgente

Include to field in pleroma blocking

Bob Mottram 7 anni fa
parent
commit
8afe110663
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      src/freedombone-app-pleroma

+ 1
- 1
src/freedombone-app-pleroma Vedi File

81
     echo 'while read blocked; do' >> $blocking_script_file
81
     echo 'while read blocked; do' >> $blocking_script_file
82
     echo '    if [[ "$blocked" == *"."* || "$blocked" == *"@"* ]]; then' >> $blocking_script_file
82
     echo '    if [[ "$blocked" == *"."* || "$blocked" == *"@"* ]]; then' >> $blocking_script_file
83
     echo '        if [ ${#blocked} -gt 4 ]; then' >> $blocking_script_file
83
     echo '        if [ ${#blocked} -gt 4 ]; then' >> $blocking_script_file
84
-    echo "            sudo -u postgres psql -d pleroma -c \"DELETE FROM objects WHERE data->>'content' ilike '%\${blocked}%' or data->>'actor' ilike '%\${blocked}%'\"" >> $blocking_script_file
84
+    echo "            sudo -u postgres psql -d pleroma -c \"DELETE FROM objects WHERE data->>'content' ilike '%\${blocked}%' or data->>'actor' ilike '%\${blocked}%' or data->>'to' ilike '%\${blocked}%'\"" >> $blocking_script_file
85
     echo '        fi' >> $blocking_script_file
85
     echo '        fi' >> $blocking_script_file
86
     echo '    fi' >> $blocking_script_file
86
     echo '    fi' >> $blocking_script_file
87
     echo "done </root/${PROJECT_NAME}-firewall-domains.cfg" >> $blocking_script_file
87
     echo "done </root/${PROJECT_NAME}-firewall-domains.cfg" >> $blocking_script_file