From 58ec7af7264ce06c55d68f2f6dbe0773a3d2ba63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Wed, 2 Feb 2022 17:37:30 +0100 Subject: [PATCH] PubSub Filter: change allow/block to include/exclude MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- inbox/pubsub-filter.xml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/inbox/pubsub-filter.xml b/inbox/pubsub-filter.xml index f4009bf5..acc4a494 100644 --- a/inbox/pubsub-filter.xml +++ b/inbox/pubsub-filter.xml @@ -54,7 +54,7 @@
    -
  • Allow querying only a subset of nodes in a disco items request, in the form of allow/block
  • +
  • Allow querying only a subset of nodes in a disco items request, in the form of include/exclude
@@ -66,13 +66,13 @@ -

While requesting disco#items on a PubSub service, an entity might want to only get nodes of certain pubsub#type. To do so, it may add a filter child of namespace urn:xmpp:pubsub-filter:0 to the query element, containing a &xep0004; form with FORM_TYPE set to urn:xmpp:pubsub-filter:0 and an allowed-types or blocked-types list-multi type field containing the various types it wants to filter.

+

While requesting disco#items on a PubSub service, an entity might want to only get nodes of certain pubsub#type. To do so, it may add a filter child of namespace urn:xmpp:pubsub-filter:0 to the query element, containing a &xep0004; form with FORM_TYPE set to urn:xmpp:pubsub-filter:0 and an included-types or excluded-types list-multi type field containing the various types it wants to filter.

-

When allowed-types is specified, a PubSub service MUST return nodes of matching pubsub#type in its response.

+

When included-types is specified, a PubSub service MUST return nodes of matching pubsub#type in its response.

-

When blocked-types is specified, a PubSub service MUST return every node but those of matching pubsub#types in its response.

+

When excluded-types is specified, a PubSub service MUST return every node but those of matching pubsub#types in its response.

-

Both allowed and blocked fields MAY contain an empty value to designate nodes with an empty pubsub#type.

+

Both included and excluded fields MAY contain an empty value to designate nodes with an empty pubsub#type.

urn:xmpp:pubsub-filter:0 - + urn:xmpp:microblog:0 @@ -93,7 +93,7 @@ ]]> -

If both the allowed and blocked fields are specified, a service MUST return an error of type modify containing a bad-request element in the urn:ietf:params:xml:ns:xmpp-stanzas namespace.

+

If both the included and excluded fields are specified, a service MUST return an error of type modify containing a bad-request element in the urn:ietf:params:xml:ns:xmpp-stanzas namespace.