diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-08-04 21:36:59 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-08-04 21:36:59 +0100 |
commit | 8bc6f5274b12b814a708f4a51e822c9154ea7ad2 (patch) | |
tree | 29487141eab96e1cbd915a91c9f0af99ec96e9ed /plugins | |
parent | 25eeaeeff47fae317735d93cf85cef74d22bdb0c (diff) | |
download | prosody-8bc6f5274b12b814a708f4a51e822c9154ea7ad2.tar.gz prosody-8bc6f5274b12b814a708f4a51e822c9154ea7ad2.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.lua | 4 |
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 |