aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub/pubsub.lib.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2021-09-15 15:34:57 +0200
committerKim Alvefur <zash@zash.se>2021-09-15 15:34:57 +0200
commit69600b88ebfb740626ff7ba8eb9f550f8c00a860 (patch)
tree25d1e4609268e00e828b70dbd73aa0fbb105f935 /plugins/mod_pubsub/pubsub.lib.lua
parent72e0ff88baa4a2988b2203bc9a58ed02cc5c9959 (diff)
downloadprosody-69600b88ebfb740626ff7ba8eb9f550f8c00a860.tar.gz
prosody-69600b88ebfb740626ff7ba8eb9f550f8c00a860.zip
mod_pubsub: Advertise support for 'max' as value for max_items
Ref #1643
Diffstat (limited to 'plugins/mod_pubsub/pubsub.lib.lua')
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua
index 2603c68c..87144173 100644
--- a/plugins/mod_pubsub/pubsub.lib.lua
+++ b/plugins/mod_pubsub/pubsub.lib.lua
@@ -257,6 +257,10 @@ function _M.get_feature_set(service)
supported_features:add("persistent-items");
end
+ if true --[[ node_metadata_form[max_items].datatype == "pubsub:integer-or-max" ]] then
+ supported_features:add("config-node-max");
+ end
+
return supported_features;
end