Changeset

11803:024b44ad5651

mod_pubsub: Advertise support for 'max' as value for max_items Ref #1643
author Kim Alvefur <zash@zash.se>
date Wed, 15 Sep 2021 15:34:57 +0200
parents 11802:3d411720e719
children 11804:22825cb5dcd8
files plugins/mod_pubsub/pubsub.lib.lua
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_pubsub/pubsub.lib.lua	Tue Sep 14 15:33:39 2021 +0200
+++ b/plugins/mod_pubsub/pubsub.lib.lua	Wed Sep 15 15:34:57 2021 +0200
@@ -257,6 +257,10 @@
 		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