Comparison

mod_push2/mod_push2.lua @ 5998:fd1927e51791

mod_push2: fix broken log statement
author Stephen Paul Weber <singpolyma@singpolyma.net>
date Tue, 08 Oct 2024 10:24:39 -0500
parent 5869:83ee752f148c
child 6033:8cb37a497e4c
comparison
equal deleted inserted replaced
5994:1bb8b559f441 5998:fd1927e51791
394 local node, user_push_services = get_push_settings(event.stanza, event.origin); 394 local node, user_push_services = get_push_settings(event.stanza, event.origin);
395 local notify_push_services = {}; 395 local notify_push_services = {};
396 for identifier, push_info in pairs(user_push_services) do 396 for identifier, push_info in pairs(user_push_services) do
397 for _, match in ipairs(push_info.matches) do 397 for _, match in ipairs(push_info.matches) do
398 if match.match == "urn:xmpp:push2:match:archived-with-body" or match.match == "urn:xmpp:push2:match:archived" then 398 if match.match == "urn:xmpp:push2:match:archived-with-body" or match.match == "urn:xmpp:push2:match:archived" then
399 identifier_found.log("debug", "Not pushing because we are not archiving this stanza") 399 module:log("debug", "Not pushing because we are not archiving this stanza")
400 else 400 else
401 notify_push_services[identifier] = push_info; 401 notify_push_services[identifier] = push_info;
402 end 402 end
403 end 403 end
404 end 404 end