mod_server_contact_info: Add status-addresses field

XEP-0157 version 1.1.0
This commit is contained in:
Kim Alvefur 2020-05-27 19:47:52 +02:00
parent 9eb8214030
commit 1c0950bc36
4 changed files with 6 additions and 1 deletions

View file

@ -284,7 +284,7 @@
<implements>
<xmpp:SupportedXep>
<xmpp:xep rdf:resource="https://xmpp.org/extensions/xep-0157.html"/>
<xmpp:version>1.0.1</xmpp:version>
<xmpp:version>1.1.0</xmpp:version>
<xmpp:since>0.10</xmpp:since>
</xmpp:SupportedXep>
</implements>

View file

@ -16,6 +16,7 @@ local form_layout = require "util.dataforms".new({
{ name = "feedback", var = "feedback-addresses", type = "list-multi" },
{ name = "sales", var = "sales-addresses", type = "list-multi" },
{ name = "security", var = "security-addresses", type = "list-multi" },
{ name = "status", var = "status-addresses", type = "list-multi" },
{ name = "support", var = "support-addresses", type = "list-multi" },
});

View file

@ -73,6 +73,7 @@ contact_info = {
feedback = { "http://localhost/feedback.html", "mailto:feedback@localhost", "xmpp:feedback@localhost" };
sales = { "xmpp:sales@localhost" };
security = { "xmpp:security@localhost" };
status = { "gopher://status.localhost" };
support = { "https://localhost/support.html", "xmpp:support@localhost" };
}

View file

@ -42,6 +42,9 @@ Romeo receives:
<field type='list-multi' var='security-addresses'>
<value>xmpp:security@localhost</value>
</field>
<field type='list-multi' var='status-addresses'>
<value>gopher://status.localhost</value>
</field>
<field type='list-multi' var='support-addresses'>
<value>https://localhost/support.html</value>
<value>xmpp:support@localhost</value>