Remove @ replies for blocked users

This commit is contained in:
Bob Mottram 2017-09-03 16:22:09 +01:00
parent 8adf27e743
commit 3fcdc6f2f1
1 changed files with 3 additions and 0 deletions

View File

@ -611,6 +611,9 @@ function gnusocial_block_user_script {
echo '' >> /usr/bin/gnusocial-delete-user 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 ' 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 ' 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 ' fi' >> /usr/bin/gnusocial-delete-user
echo ' ctr=$((ctr + 1))' >> /usr/bin/gnusocial-delete-user echo ' ctr=$((ctr + 1))' >> /usr/bin/gnusocial-delete-user
echo 'done' >> /usr/bin/gnusocial-delete-user echo 'done' >> /usr/bin/gnusocial-delete-user