view mod_service_outage_status/mod_service_outage_status.lua @ 5817:7905766d01f6

mod_pubsub_serverinfo: Treat public providers as public The opt-in mechanism is to prevent leaking domain names or relationships between small private servers. These are not considerations relevant to public servers. We use the providers.xmpp.net API to fetch a list of known public provider domains.
author Matthew Wild <mwild1@gmail.com>
date Mon, 08 Jan 2024 15:56:11 +0000
parents 03044a6f5f4c
children
line wrap: on
line source

local dataforms = require "util.dataforms";

local form_layout = dataforms.new({
	{ type = "hidden"; var = "FORM_TYPE"; value = "urn:xmpp:sos:0" };
	{ type = "list-multi"; name = "addrs"; var = "external-status-addresses" };
});

local addresses = module:get_option_array("outage_status_urls");
module:add_extension(form_layout:form({ addrs = addresses }, "result"));