Block xmpp messages from strangers to mitigate spam, but still allow contact requests
This commit is contained in:
parent
988f2dd394
commit
00288b26f8
|
@ -435,6 +435,15 @@ function update_prosody_modules {
|
|||
sed -i '/"pep";/a "omemo_all_access"; -- Fix for PEP with OMEMO' /etc/prosody/conf.avail/xmpp.cfg.lua
|
||||
sed -i 's|"omemo_all_access";| "omemo_all_access";|g' /etc/prosody/conf.avail/xmpp.cfg.lua
|
||||
fi
|
||||
|
||||
if ! grep -q "block_strangers" /etc/prosody/conf.avail/xmpp.cfg.lua; then
|
||||
sed -i '/"pep";/a "block_strangers"; -- Dont allow messages from strangers' /etc/prosody/conf.avail/xmpp.cfg.lua
|
||||
sed -i 's|"block_strangers";| "block_strangers";|g' /etc/prosody/conf.avail/xmpp.cfg.lua
|
||||
fi
|
||||
if ! grep -q "block_strangers" /etc/prosody/conf.avail/xmpp.cfg.lua; then
|
||||
sed -i '/"pep";/a "block_strangers"; -- Dont allow messages from strangers' /etc/prosody/conf.avail/xmpp.cfg.lua
|
||||
sed -i 's|"block_strangers";| "block_strangers";|g' /etc/prosody/conf.avail/xmpp.cfg.lua
|
||||
fi
|
||||
}
|
||||
|
||||
function prosody_daemon_restart_script {
|
||||
|
@ -748,6 +757,7 @@ function xmpp_modules {
|
|||
echo ' "blocklist"; -- Privacy lists';
|
||||
echo ' "privacy_lists"; -- Privacy lists';
|
||||
echo ' "blocking"; -- Blocking command';
|
||||
echo ' "block_strangers"; -- Dont allow messages from strangers';
|
||||
echo ' "roster"; -- Roster versioning';
|
||||
echo ' "offline_email"; -- If offline send to email';
|
||||
echo ' "offline"; -- Store offline messages';
|
||||
|
|
Loading…
Reference in New Issue