mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Revert "Fix pubsub compliance XEP-0060 § 7.1.3.6 (#2864)"
This reverts commit 2fff4d1ea6
.
This commit broke the XEP compliance. more details here
https://xmpp.org/extensions/xep-0060.html#events
This commit is contained in:
parent
34794b3c68
commit
88a3e1b510
@ -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 ->
|
||||
|
Loading…
Reference in New Issue
Block a user