aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-08-04 21:36:59 +0100
committerMatthew Wild <mwild1@gmail.com>2018-08-04 21:36:59 +0100
commit4c86f3f3b67a853c19587f460a62a0361aeee86a (patch)
tree29487141eab96e1cbd915a91c9f0af99ec96e9ed /plugins
parent756c7750431fd55d35c53fbbda090cb3f35b99a2 (diff)
downloadprosody-4c86f3f3b67a853c19587f460a62a0361aeee86a.tar.gz
prosody-4c86f3f3b67a853c19587f460a62a0361aeee86a.zip
pubsub.lib: Advertise peristent-items feature when nodes and items are persisted
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_pubsub/pubsub.lib.lua4
1 files changed, 4 insertions, 0 deletions
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