Remove @ replies for blocked users
This commit is contained in:
parent
8adf27e743
commit
3fcdc6f2f1
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue