Software /
code /
prosody
Changeset
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 |
parents | 9108:86f31a2174b3 |
children | 9110:3dbecb399dfb |
files | plugins/mod_pubsub/pubsub.lib.lua |
diffstat | 1 files changed, 4 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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