Comparison

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
comparison
equal deleted inserted replaced
11802:3d411720e719 11803:024b44ad5651
255 255
256 if rawget(service.config, "itemstore") and rawget(service.config, "nodestore") then 256 if rawget(service.config, "itemstore") and rawget(service.config, "nodestore") then
257 supported_features:add("persistent-items"); 257 supported_features:add("persistent-items");
258 end 258 end
259 259
260 if true --[[ node_metadata_form[max_items].datatype == "pubsub:integer-or-max" ]] then
261 supported_features:add("config-node-max");
262 end
263
260 return supported_features; 264 return supported_features;
261 end 265 end
262 266
263 function _M.handle_disco_info_node(event, service) 267 function _M.handle_disco_info_node(event, service)
264 local stanza, reply, node = event.stanza, event.reply, event.node; 268 local stanza, reply, node = event.stanza, event.reply, event.node;