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

Fix pubsub compliance XEP-0060 § 7.1.3.6 (#2864)

This commit is contained in:
Christophe Romain 2019-05-07 16:22:45 +02:00
parent 945c58d3db
commit 2fff4d1ea6

View File

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