Software /
code /
prosody
Diff
plugins/mod_pubsub/pubsub.lib.lua @ 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 |
parent | 9102:f3a1ecc46f20 |
child | 9110:3dbecb399dfb |
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