From a9583b43c37c38accfe06dc44e9f634cd8f92498 Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Sat, 28 Sep 2024 17:51:28 +0200 Subject: [PATCH] mod_pubsub: Fix choice of node config defaults Ignore node plugin defaults if the plugin handling the request isn't enabled, rather than ignoring 'default_node_config' options and applying plugin defaults in that case. --- src/mod_pubsub.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl index 75cde586a..d65c93f0f 100644 --- a/src/mod_pubsub.erl +++ b/src/mod_pubsub.erl @@ -3371,7 +3371,7 @@ node_options(Host, Type) -> case lists:member(Type, config(Host, plugins)) of true -> merge_config([ConfigOpts, DefaultOpts]); - false -> DefaultOpts + false -> ConfigOpts end. -spec node_plugin_options(host(), binary()) -> [{atom(), any()}].