Blocking and unblocking gnusocial/postactiv users
This commit is contained in:
parent
b8bed7bd8e
commit
d433390aa9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue