diff mod_cloud_notify/mod_cloud_notify.lua @ 4367:33f82988d7a9

mod_cloud_notify: Make push_errors a shared table to persist across reloads and share with other modules
author Matthew Wild <mwild1@gmail.com>
date Thu, 21 Jan 2021 15:25:18 +0000
parents 31afa4f314cc
children e5493a10c4d1
line wrap: on
line diff
--- 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 = {};