Software /
code /
prosody
Diff
plugins/mod_pubsub/pubsub.lib.lua @ 8978:9d6c0c11e383
mod_pubsub: Translate missing fields into node config
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 06 Jul 2018 16:04:26 +0200 |
parent | 8953:19cbe80df9c8 |
child | 8979:6897b2e18bdf |
line wrap: on
line diff
--- a/plugins/mod_pubsub/pubsub.lib.lua Fri Jul 06 15:58:11 2018 +0100 +++ b/plugins/mod_pubsub/pubsub.lib.lua Fri Jul 06 16:04:26 2018 +0200 @@ -435,6 +435,8 @@ 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