Comparison

plugins/mod_pubsub/pubsub.lib.lua @ 9109:31bf4b3abc7f

pubsub.lib: Advertise peristent-items feature when nodes and items are persisted
author Matthew Wild <mwild1@gmail.com>
date Sat, 04 Aug 2018 21:36:59 +0100
parent 9102:f3a1ecc46f20
child 9110:3dbecb399dfb
comparison
equal deleted inserted replaced
9108:86f31a2174b3 9109:31bf4b3abc7f
189 189
190 if service.node_defaults.access_model then 190 if service.node_defaults.access_model then
191 supported_features:add("access-"..service.node_defaults.access_model); 191 supported_features:add("access-"..service.node_defaults.access_model);
192 end 192 end
193 193
194 if rawget(service.config, "itemstore") and rawget(service.config, "nodestore") then
195 supported_features:add("persistent-items");
196 end
197
194 return supported_features; 198 return supported_features;
195 end 199 end
196 200
197 function _M.handle_disco_info_node(event, service) 201 function _M.handle_disco_info_node(event, service)
198 local stanza, reply, node = event.stanza, event.reply, event.node; 202 local stanza, reply, node = event.stanza, event.reply, event.node;