From 3fcdc6f2f126d4de3d2a6b782c9cb90bc4f6e899 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 3 Sep 2017 16:22:09 +0100 Subject: [PATCH] Remove @ replies for blocked users --- src/freedombone-utils-gnusocialtools | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/freedombone-utils-gnusocialtools b/src/freedombone-utils-gnusocialtools index 7885ff08..2b4ef795 100755 --- a/src/freedombone-utils-gnusocialtools +++ b/src/freedombone-utils-gnusocialtools @@ -611,6 +611,9 @@ function gnusocial_block_user_script { echo '' >> /usr/bin/gnusocial-delete-user echo ' database_query="delete from qvitternotification where to_profile_id=${id} or from_profile_id=${id};"' >> /usr/bin/gnusocial-delete-user echo ' mysql -u root --password="$MARIADB_PASSWORD" -e "$database_query" $database_name' >> /usr/bin/gnusocial-delete-user + echo '' >> /usr/bin/gnusocial-delete-user + echo " database_query=\"delete from notice where content REGEXP '\@${remove_user}';\"" >> /usr/bin/gnusocial-delete-user + echo ' mysql -u root --password="$MARIADB_PASSWORD" -e "$database_query" $database_name' >> /usr/bin/gnusocial-delete-user echo ' fi' >> /usr/bin/gnusocial-delete-user echo ' ctr=$((ctr + 1))' >> /usr/bin/gnusocial-delete-user echo 'done' >> /usr/bin/gnusocial-delete-user