# HG changeset patch # User tmolitor # Date 1561999764 -7200 # Node ID c84bbf36c878d2c2541c079bde1f59e0cdeb7620 # Parent a578b4977bb09901febef1abd5c66a7e7c933a4e mod_cloud_notify: fix local variable usage diff -r a578b4977bb0 -r c84bbf36c878 mod_cloud_notify/mod_cloud_notify.lua --- a/mod_cloud_notify/mod_cloud_notify.lua Sat Jun 29 19:26:08 2019 +0200 +++ b/mod_cloud_notify/mod_cloud_notify.lua Mon Jul 01 18:49:24 2019 +0200 @@ -582,11 +582,8 @@ module:hook("archive-message-added", archive_message_added); local function send_ping(event) - local push_services = event.push_services; - if not push_services then - local user = event.user; - push_services = push_store:get(user); - end + local user = event.user; + local push_services = event.push_services || push_store:get(user); handle_notify_request(nil, user, push_services, true); end -- can be used by other modules to ping one or more (or all) push endpoints