# HG changeset patch # User Kim Alvefur # Date 1631712897 -7200 # Node ID 024b44ad5651eaced33c28925ce7750f186ea918 # Parent 3d411720e71990ee3412a63a05c59e7a976fdd89 mod_pubsub: Advertise support for 'max' as value for max_items Ref #1643 diff -r 3d411720e719 -r 024b44ad5651 plugins/mod_pubsub/pubsub.lib.lua --- 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