24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-12 21:52:07 +02:00

Fix reversed logic in node fixup function

This commit is contained in:
Paweł Chmielowski 2023-10-26 15:44:45 +02:00
parent 52e7c166fc
commit 3bf4cf5c3f

View File

@ -247,8 +247,8 @@ delete_node(Host, Node) ->
fixup_node(#pubsub_node{options = Options} = Node) -> fixup_node(#pubsub_node{options = Options} = Node) ->
Res = lists:splitwith( Res = lists:splitwith(
fun({max_items, infinity}) -> true; fun({max_items, infinity}) -> false;
(_) -> false (_) -> true
end, Options), end, Options),
Options2 = case Res of Options2 = case Res of
{Before, [_ | After]} -> {Before, [_ | After]} ->