From d433390aa9bb03d68c07f673880c7138d50ffdcb Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Sun, 30 Apr 2017 20:19:20 +0100 Subject: [PATCH] Blocking and unblocking gnusocial/postactiv users --- src/freedombone-controlpanel | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freedombone-controlpanel b/src/freedombone-controlpanel index fcaad2ee..a1c19a85 100755 --- a/src/freedombone-controlpanel +++ b/src/freedombone-controlpanel @@ -1866,8 +1866,8 @@ function domain_blocking_add { blocked_domain=$(<$data) if [ ${#blocked_domain} -gt 2 ]; then if [[ "${blocked_domain}" == *'.'* ]]; then + firewall_block_domain $blocked_domain if [[ "${blocked_domain}" != *'@'* ]]; then - firewall_block_domain $blocked_domain dialog --title $"Block a domain" \ --msgbox $"The domain $blocked_domain has been blocked" 6 40 else @@ -1892,8 +1892,8 @@ function domain_blocking_remove { unblocked_domain=$(<$data) if [ ${#unblocked_domain} -gt 2 ]; then if [[ "${unblocked_domain}" == *'.'* ]]; then + firewall_unblock_domain $unblocked_domain if [[ "${unblocked_domain}" != *'@'* ]]; then - firewall_unblock_domain $unblocked_domain dialog --title $"Unblock a domain" \ --msgbox $"The domain $unblocked_domain has been unblocked" 6 40 else