Diff

plugins/mod_pubsub/pubsub.lib.lua @ 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
parent 11785:b1381e302cab
child 11854:b605cbd5f13b
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