From 20cb21003f0374e7078e1a29ffb36a7028c6b9ef Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 5 Nov 2020 22:27:17 +0100 Subject: mod_pubsub: Lower priority of default generator in order to avoid conflict with a handler at the default (0) priority, making it easier to write your own formatting in plugins. this follows the common pattern of default modules having lower priority --- plugins/mod_pubsub/mod_pubsub.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua index 4276bc5e..b6019c71 100644 --- a/plugins/mod_pubsub/mod_pubsub.lua +++ b/plugins/mod_pubsub/mod_pubsub.lua @@ -127,7 +127,7 @@ module:hook("pubsub-summary/http://www.w3.org/2005/Atom", function (event) end end return summary; -end); +end, -1); module:hook("iq/host/"..xmlns_pubsub..":pubsub", handle_pubsub_iq); module:hook("iq/host/"..xmlns_pubsub_owner..":pubsub", handle_pubsub_iq); -- cgit v1.2.3