25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01:00

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.
This commit is contained in:
Holger Weiss 2024-09-28 17:51:28 +02:00
parent ca54f81f58
commit a9583b43c3

View File

@ -3371,7 +3371,7 @@ node_options(Host, Type) ->
case lists:member(Type, config(Host, plugins)) of case lists:member(Type, config(Host, plugins)) of
true -> true ->
merge_config([ConfigOpts, DefaultOpts]); merge_config([ConfigOpts, DefaultOpts]);
false -> DefaultOpts false -> ConfigOpts
end. end.
-spec node_plugin_options(host(), binary()) -> [{atom(), any()}]. -spec node_plugin_options(host(), binary()) -> [{atom(), any()}].