aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-07-06 16:04:26 +0200
committerKim Alvefur <zash@zash.se>2018-07-06 16:04:26 +0200
commite3e2cb7f30fb135680d5d951b2244ce7707273a3 (patch)
treeac43ad801a68a0cb678a0a1e1e13104052007511 /plugins/mod_pubsub
parentd2fa6378e6777094c7f490e8c4da0c8b3c02a863 (diff)
downloadprosody-e3e2cb7f30fb135680d5d951b2244ce7707273a3.tar.gz
prosody-e3e2cb7f30fb135680d5d951b2244ce7707273a3.zip
mod_pubsub: Translate missing fields into node config
Diffstat (limited to 'plugins/mod_pubsub')
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua
index 4ed4bc86..aa8eb32a 100644
--- a/plugins/mod_pubsub/pubsub.lib.lua
+++ b/plugins/mod_pubsub/pubsub.lib.lua
@@ -435,6 +435,8 @@ function handlers.owner_set_configure(origin, stanza, config, service)
local new_config = {
["max_items"] = tonumber(form_data["pubsub#max_items"]);
["persist_items"] = form_data["pubsub#persist_items"];
+ ["notification_type"] = form_data["pubsub#notification_type"];
+ ["include_body"] = form_data["pubsub#include_body"];
};
local ok, err = service:set_node_config(node, stanza.attr.from, new_config);
if not ok then