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

Fix config fetch after host/serverhost cleanup

This commit is contained in:
Christophe Romain 2016-03-11 17:25:46 +01:00
parent 0d1edc4771
commit 9297782868

View File

@ -3953,20 +3953,14 @@ set_xoption(Host, [{<<"pubsub#itemreply">>, [Val]} | Opts], NewOpts) ->
set_xoption(Host, [_ | Opts], NewOpts) ->
set_xoption(Host, Opts, NewOpts).
get_max_items_node({_, ServerHost, _}) ->
get_max_items_node(ServerHost);
get_max_items_node(Host) ->
config(serverhost(Host), max_items_node, undefined).
get_max_subscriptions_node({_, ServerHost, _}) ->
get_max_subscriptions_node(ServerHost);
get_max_subscriptions_node(Host) ->
config(serverhost(Host), max_subscriptions_node, undefined).
%%%% last item cache handling
is_last_item_cache_enabled({_, ServerHost, _}) ->
is_last_item_cache_enabled(ServerHost);
is_last_item_cache_enabled(Host) ->
config(serverhost(Host), last_item_cache, false).