Blocking and unblocking gnusocial/postactiv users

This commit is contained in:
Bob Mottram 2017-04-30 20:19:20 +01:00
parent b8bed7bd8e
commit d433390aa9
1 changed files with 2 additions and 2 deletions

View File

@ -1866,8 +1866,8 @@ function domain_blocking_add {
blocked_domain=$(<$data)
if [ ${#blocked_domain} -gt 2 ]; then
if [[ "${blocked_domain}" == *'.'* ]]; then
if [[ "${blocked_domain}" != *'@'* ]]; then
firewall_block_domain $blocked_domain
if [[ "${blocked_domain}" != *'@'* ]]; then
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
if [[ "${unblocked_domain}" != *'@'* ]]; then
firewall_unblock_domain $unblocked_domain
if [[ "${unblocked_domain}" != *'@'* ]]; then
dialog --title $"Unblock a domain" \
--msgbox $"The domain $unblocked_domain has been unblocked" 6 40
else