# HG changeset patch # User Kim Alvefur # Date 1730849618 -3600 # Node ID 7201266ce3ddbb6db43a1fd15beb153bd9411f8f # Parent 277ccafb4826053334bb3886edf9d92ed74b99d1 mod_rest: Add XEP-0191 blocking to JSON mapping diff -r 277ccafb4826 -r 7201266ce3dd mod_rest/res/schema-xmpp.json --- a/mod_rest/res/schema-xmpp.json Thu Oct 31 21:49:32 2024 +0100 +++ b/mod_rest/res/schema-xmpp.json Wed Nov 06 00:33:38 2024 +0100 @@ -266,6 +266,28 @@ "namespace" : "urn:xmpp:mam:2" } }, + "block" : { + "items" : { + "properties" : { + "jid" : { + "type" : "string", + "xml" : { + "attribute" : true + } + } + }, + "type" : "object", + "xml" : { + "name" : "item" + } + }, + "type" : "array", + "xml" : { + "name" : "block", + "namespace" : "urn:xmpp:blocking", + "wrapped" : true + } + }, "dataform" : { "$ref" : "#/_common/dataform" },