mod_firewall/actions.lib.lua
changeset 3000 0fb95dc11bc8
parent 2919 b8f2e86df7ce
child 3375 68842409f4e7
--- a/mod_firewall/actions.lib.lua	Wed Apr 04 21:59:00 2018 +0100
+++ b/mod_firewall/actions.lib.lua	Wed Apr 04 21:40:08 2018 +0200
@@ -229,8 +229,10 @@
 end
 
 function action_handlers.UNSUBSCRIBE_SENDER()
-	return "rostermanager.unsubscribed(to_node, to_host, bare_from)",
-	       { "rostermanager", "split_to", "bare_to", "bare_from" };
+	return "rostermanager.unsubscribed(to_node, to_host, bare_from);\
+	rostermanager.roster_push(to_node, to_host, bare_from);\
+	core_post_stanza(session, st.presence({ from = bare_to, to = bare_from, type = \"unsubscribed\" }));",
+	       { "rostermanager", "core_post_stanza", "st", "split_to", "bare_to", "bare_from" };
 end
 
 return action_handlers;