From 8bc6f5274b12b814a708f4a51e822c9154ea7ad2 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 4 Aug 2018 21:36:59 +0100 Subject: pubsub.lib: Advertise peristent-items feature when nodes and items are persisted --- plugins/mod_pubsub/pubsub.lib.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'plugins/mod_pubsub/pubsub.lib.lua') diff --git a/plugins/mod_pubsub/pubsub.lib.lua b/plugins/mod_pubsub/pubsub.lib.lua index 9888a0fd..d5af40c4 100644 --- a/plugins/mod_pubsub/pubsub.lib.lua +++ b/plugins/mod_pubsub/pubsub.lib.lua @@ -191,6 +191,10 @@ function _M.get_feature_set(service) 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 -- cgit v1.2.3