diff options
author | Kim Alvefur <zash@zash.se> | 2018-07-14 19:34:10 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-07-14 19:34:10 +0200 |
commit | 97644a718986fc2c8b7377f10a30f9b260cde255 (patch) | |
tree | f424c4eeb1f4f6cb9ee0230d9d7f468f3d425321 /plugins/mod_pubsub/pubsub.lib.lua | |
parent | 47eca5d3fb991ba505df36147f31c7f23643fa79 (diff) | |
download | prosody-97644a718986fc2c8b7377f10a30f9b260cde255.tar.gz prosody-97644a718986fc2c8b7377f10a30f9b260cde255.zip |
mod_pubsub: Move include_body option into subscription options
Diffstat (limited to 'plugins/mod_pubsub/pubsub.lib.lua')
-rw-r--r-- | plugins/mod_pubsub/pubsub.lib.lua | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua index ebb8727d..5cabdf00 100644 --- a/plugins/mod_pubsub/pubsub.lib.lua +++ b/plugins/mod_pubsub/pubsub.lib.lua @@ -46,7 +46,6 @@ local function config_to_xep0060(node_config) ["pubsub#max_items"] = tostring(node_config["max_items"]); ["pubsub#persist_items"] = node_config["persist_items"]; ["pubsub#notification_type"] = node_config["notification_type"]; - ["pubsub#include_body"] = node_config["include_body"]; } end @@ -57,7 +56,6 @@ local function config_from_xep0060(config) ["max_items"] = tonumber(config["pubsub#max_items"]); ["persist_items"] = config["pubsub#persist_items"]; ["notification_type"] = config["pubsub#notification_type"]; - ["include_body"] = config["pubsub#include_body"]; } end @@ -88,11 +86,6 @@ local node_config_form = dataform { label = "Persist items to storage"; }; { - type = "boolean"; - name = "pubsub#include_body"; - label = "Receive message body in addition to payload?"; - }; - { type = "list-single"; name = "pubsub#notification_type"; label = "Specify the delivery style for notifications"; @@ -108,8 +101,12 @@ local options_form = dataform { type = "hidden"; name = "FORM_TYPE"; value = "http://jabber.org/protocol/pubsub#subscribe_options"; - } - -- No options yet. File a feature request ;) + }; + { + type = "boolean"; + name = "pubsub#include_body"; + label = "Receive message body in addition to payload?"; + }; }; local node_metadata_form = dataform { |