# HG changeset patch # User Kim Alvefur # Date 1679671788 -3600 # Node ID d795e3bbc0e32095ecbf75ef0a520ece06a9ab2c # Parent 6ebad8e16b3bec6e99d4d20ef2c12f8c7589d025 mod_server_contact_info: Reorder dataform keys for more aligned view diff -r 6ebad8e16b3b -r d795e3bbc0e3 plugins/mod_server_contact_info.lua --- a/plugins/mod_server_contact_info.lua Fri Mar 24 12:59:47 2023 +0000 +++ b/plugins/mod_server_contact_info.lua Fri Mar 24 16:29:48 2023 +0100 @@ -7,19 +7,20 @@ -- local array = require "prosody.util.array"; +local dataforms = require "prosody.util.dataforms"; local jid = require "prosody.util.jid"; local url = require "socket.url"; -- Source: http://xmpp.org/registrar/formtypes.html#http:--jabber.org-network-serverinfo -local form_layout = require "prosody.util.dataforms".new({ - { var = "FORM_TYPE"; type = "hidden"; value = "http://jabber.org/network/serverinfo"; }; - { name = "abuse", var = "abuse-addresses", type = "list-multi" }, - { name = "admin", var = "admin-addresses", type = "list-multi" }, - { 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" }, +local form_layout = dataforms.new({ + { var = "FORM_TYPE"; type = "hidden"; value = "http://jabber.org/network/serverinfo" }; + { type = "list-multi"; name = "abuse"; var = "abuse-addresses" }; + { type = "list-multi"; name = "admin"; var = "admin-addresses" }; + { type = "list-multi"; 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" }; }); -- JIDs of configured service admins are used as fallback