Mercurial > prosody-modules
changeset 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 | 83370df0ce4a |
children | e0c8d866d58c |
files | mod_cloud_notify/mod_cloud_notify.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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 = {};