diff options
author | Kim Alvefur <zash@zash.se> | 2014-09-28 02:00:09 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2014-09-28 02:00:09 +0200 |
commit | a578c75039fb478ec21e170d8731f04cd8a563aa (patch) | |
tree | fd216f000bb61383dcbf91cd287f08905a1301ee /plugins/mod_pep_plus.lua | |
parent | b0190726e5b46b3accb081366c921839b8ee2441 (diff) | |
download | prosody-a578c75039fb478ec21e170d8731f04cd8a563aa.tar.gz prosody-a578c75039fb478ec21e170d8731f04cd8a563aa.zip |
mod_pep_plus: Add node config form
Diffstat (limited to 'plugins/mod_pep_plus.lua')
-rw-r--r-- | plugins/mod_pep_plus.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/mod_pep_plus.lua b/plugins/mod_pep_plus.lua index 351b0e3c..de0f92b2 100644 --- a/plugins/mod_pep_plus.lua +++ b/plugins/mod_pep_plus.lua @@ -133,6 +133,7 @@ function get_pep_service(name) retract = true; delete = true; get_nodes = true; + configure = true; subscribe = true; unsubscribe = true; @@ -153,6 +154,19 @@ function get_pep_service(name) }; }; + node_config_form = require"util.dataforms".new { + { + type = "hidden"; + name = "FORM_TYPE"; + value = "http://jabber.org/protocol/pubsub#node_config"; + }; + { + type = "text-single"; + name = "pubsub#max_items"; + label = "Max # of items to persist"; + }; + }; + autocreate_on_publish = true; autocreate_on_subscribe = true; |