upstream: fix: Use <body> tag for spam reporting (XEP-0377) (446f28ac3)

This commit is contained in:
2026-03-31 19:57:34 +03:00
parent 7de1b52962
commit c03d3d499b

View File

@@ -144,7 +144,12 @@ blocked_add(char* jid, blocked_report reportkind, const char* const message)
if (message) {
xmpp_stanza_t* text = xmpp_stanza_new(ctx);
xmpp_stanza_set_name(text, STANZA_NAME_TEXT);
if (reportkind == BLOCKED_REPORT_SPAM) {
xmpp_stanza_set_name(text, STANZA_NAME_BODY);
xmpp_stanza_set_ns(text, "jabber:client");
} else {
xmpp_stanza_set_name(text, STANZA_NAME_TEXT);
}
xmpp_stanza_t* txt = xmpp_stanza_new(ctx);
xmpp_stanza_set_text(txt, message);