Software / code / prosody-modules
Changeset
6039:4ed37206cd9e
mod_rest: Add XEP-0377 spam reporting to JSON mapping
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Wed, 06 Nov 2024 00:34:40 +0100 |
| parents | 6038:7201266ce3dd |
| children | 6040:889d24be0a49 |
| files | mod_rest/res/schema-xmpp.json |
| diffstat | 1 files changed, 21 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_rest/res/schema-xmpp.json Wed Nov 06 00:33:38 2024 +0100 +++ b/mod_rest/res/schema-xmpp.json Wed Nov 06 00:34:40 2024 +0100 @@ -274,6 +274,27 @@ "xml" : { "attribute" : true } + }, + "report" : { + "properties" : { + "reason" : { + "enum" : [ + "urn:xmpp:reporting:spam", + "urn:xmpp:reporting:abuse" + ], + "type" : "string", + "xml" : { + "attribute" : true + } + }, + "stanza_ids" : { + "$ref" : "#/properties/message/properties/stanza_ids" + } + }, + "xml" : { + "name" : "report", + "namespace" : "urn:xmpp:reporting:1" + } } }, "type" : "object",