mod_pubsub: Advertise default access model in disco
authorKim Alvefur <zash@zash.se>
Sat, 04 Aug 2018 03:33:21 +0200
changeset 9105 f3a1ecc46f20
parent 9104 1ff694534e98
child 9106 d5a7d2697b19
mod_pubsub: Advertise default access model in disco
plugins/mod_pubsub/pubsub.lib.lua
--- 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