# HG changeset patch # User Matthew Wild # Date 1533415019 -3600 # Node ID 31bf4b3abc7ff2443b5015292989628b5df6e350 # Parent 86f31a2174b35f8b38e156e5c7f86330710e1fc7 pubsub.lib: Advertise peristent-items feature when nodes and items are persisted diff -r 86f31a2174b3 -r 31bf4b3abc7f plugins/mod_pubsub/pubsub.lib.lua --- a/plugins/mod_pubsub/pubsub.lib.lua Sat Aug 04 21:33:17 2018 +0100 +++ b/plugins/mod_pubsub/pubsub.lib.lua Sat Aug 04 21:36:59 2018 +0100 @@ -191,6 +191,10 @@ supported_features:add("access-"..service.node_defaults.access_model); end + if rawget(service.config, "itemstore") and rawget(service.config, "nodestore") then + supported_features:add("persistent-items"); + end + return supported_features; end