# HG changeset patch # User Matthew Wild # Date 1611242718 0 # Node ID 33f82988d7a91441e93c1139c729cbefaec7c31a # Parent 83370df0ce4af6a86697f17f8ad571926f85cd07 mod_cloud_notify: Make push_errors a shared table to persist across reloads and share with other modules diff -r 83370df0ce4a -r 33f82988d7a9 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 = {};