From 2fff4d1ea6f32babc3ae06ef877faaacb8ba3c1b Mon Sep 17 00:00:00 2001 From: Christophe Romain Date: Tue, 7 May 2019 16:22:45 +0200 Subject: [PATCH] =?utf8?q?Fix=20pubsub=20compliance=20XEP-0060=20=C2=A7=20?= =?utf8?q?7.1.3.6=20(#2864)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/mod_pubsub.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_pubsub.erl b/src/mod_pubsub.erl index 1f220f3c6..ea6113e4b 100644 --- a/src/mod_pubsub.erl +++ b/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 or PersistItems)) and (PayloadCount > 0) -> + (not DeliverPayloads) and (PayloadCount > 0) -> {error, extended_error(xmpp:err_bad_request(), err_item_forbidden())}; true -> -- 2.40.0