From 87190b52d2a2a1807a50fcad0f0233839e7dad39 Mon Sep 17 00:00:00 2001 From: Guus der Kinderen Date: Thu, 3 Nov 2022 14:45:30 +0100 Subject: [PATCH] OF-2537: Advertise support for pubsub's 'multi-item' feature XEP-0060 defines, amongst many others, the 'multi-items' service discovery feature. This feature can be advertised by a pubsub service, when clients are allowed to configure a node in such a way that it can accept more-than-one item, by: - setting `persist_items` to `true` - setting `max_items` to a value higher than 1. Openfire supports allows for both. It can/should advertise the feature `http://jabber.org/protocol/pubsub#multi-items` on its pubsub services. --- .../java/org/jivesoftware/openfire/pubsub/PubSubModule.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xmppserver/src/main/java/org/jivesoftware/openfire/pubsub/PubSubModule.java b/xmppserver/src/main/java/org/jivesoftware/openfire/pubsub/PubSubModule.java index c4e7271c96..e93e33eb9e 100644 --- a/xmppserver/src/main/java/org/jivesoftware/openfire/pubsub/PubSubModule.java +++ b/xmppserver/src/main/java/org/jivesoftware/openfire/pubsub/PubSubModule.java @@ -664,6 +664,8 @@ public Iterator getFeatures(String name, String node, JID senderJID) { features.add("http://jabber.org/protocol/pubsub#subscription-options"); // Publishing options are supported. features.add("http://jabber.org/protocol/pubsub#publish-options"); + // Clients are allowed to set persist_items to true, and max_items to a value higher than 1, so this service can support multiple items. + features.add("http://jabber.org/protocol/pubsub#multi-items"); } else if (name == null) { // Answer the features of a given node