mod_cloud_notify: Make push_errors a shared table to persist across reloads and share with other modules
authorMatthew Wild <mwild1@gmail.com>
Thu, 21 Jan 2021 15:25:18 +0000
changeset 4371 33f82988d7a9
parent 4370 83370df0ce4a
child 4372 e0c8d866d58c
mod_cloud_notify: Make push_errors a shared table to persist across reloads and share with other modules
mod_cloud_notify/mod_cloud_notify.lua
--- 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 = {};