Skip to content
Permalink
Browse files

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

This reverts commit 2fff4d1.
This commit broke the XEP compliance. more details here
https://xmpp.org/extensions/xep-0060.html#events
  • Loading branch information...
cromain committed Jun 11, 2019
1 parent 34794b3 commit 88a3e1b510e41eb050e86cd196fd0f0b575b7cc6
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/mod_pubsub.erl
@@ -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) and (PayloadCount > 0) ->
(not (DeliverPayloads or PersistItems)) and (PayloadCount > 0) ->
{error, extended_error(xmpp:err_bad_request(),
err_item_forbidden())};
true ->

0 comments on commit 88a3e1b

Please sign in to comment.
You can’t perform that action at this time.