]> granicus.if.org Git - ejabberd/commitdiff
Fix pubsub compliance XEP-0060 ยง 7.1.3.6 (#2864)
authorChristophe Romain <christophe.romain@process-one.net>
Tue, 7 May 2019 14:22:45 +0000 (16:22 +0200)
committerChristophe Romain <christophe.romain@process-one.net>
Tue, 7 May 2019 14:23:36 +0000 (16:23 +0200)
src/mod_pubsub.erl

index 1f220f3c69c9cbe1e322daa8134ca37c5311a915..ea6113e4b5abeab6953840b2160c3e427622b1b5 100644 (file)
@@ -1805,7 +1805,7 @@ publish_item(Host, ServerHost, Node, Publisher, ItemId, Payload, PubOpts, Access
                (DeliverPayloads or PersistItems) and (PayloadCount > 1) ->
                    {error, extended_error(xmpp:err_bad_request(),
                                           err_invalid_payload())};
-               (not (DeliverPayloads or PersistItems)) and (PayloadCount > 0) ->
+               (not DeliverPayloads) and (PayloadCount > 0) ->
                    {error, extended_error(xmpp:err_bad_request(),
                                           err_item_forbidden())};
                true ->