mod_cloud_notify: Make push_errors a shared table to persist across reloads and share with other modules
--- a/mod_cloud_notify/mod_cloud_notify.lua Thu Jan 21 16:18:14 2021 +0100
+++ b/mod_cloud_notify/mod_cloud_notify.lua Thu Jan 21 15:25:18 2021 +0000
@@ -22,7 +22,7 @@
local dummy_body = module:get_option_string("push_notification_important_body", "New Message!");
local host_sessions = prosody.hosts[module.host].sessions;
-local push_errors = {};
+local push_errors = module:shared("push_errors");
local id2node = {};
local id2identifier = {};