25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-22 17:28:25 +01: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) ->
Res = lists:splitwith(
fun({max_items, infinity}) -> true;
(_) -> false
fun({max_items, infinity}) -> false;
(_) -> true
end, Options),
Options2 = case Res of
{Before, [_ | After]} ->