aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-11-05 22:27:17 +0100
committerKim Alvefur <zash@zash.se>2020-11-05 22:27:17 +0100
commitb6d303a710d66140d70899f234d3a76445b19835 (patch)
tree8e19d6e50e081611d45932530b18e20672c8bd09 /plugins/mod_pubsub
parent11dcc6f62a64ea971371b858c642b123c887c852 (diff)
downloadprosody-b6d303a710d66140d70899f234d3a76445b19835.tar.gz
prosody-b6d303a710d66140d70899f234d3a76445b19835.zip
mod_pubsub: Lower priority of default <body> 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
Diffstat (limited to 'plugins/mod_pubsub')
-rw-r--r--plugins/mod_pubsub/mod_pubsub.lua2
1 files changed, 1 insertions, 1 deletions
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);