Changeset

9102:f3a1ecc46f20

mod_pubsub: Advertise default access model in disco
author Kim Alvefur <zash@zash.se>
date Sat, 04 Aug 2018 03:33:21 +0200
parents 9101:1ff694534e98
children 9103:d5a7d2697b19
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 03:31:21 2018 +0200
+++ b/plugins/mod_pubsub/pubsub.lib.lua	Sat Aug 04 03:33:21 2018 +0200
@@ -187,6 +187,10 @@
 		end
 	end
 
+	if service.node_defaults.access_model then
+		supported_features:add("access-"..service.node_defaults.access_model);
+	end
+
 	return supported_features;
 end