Mercurial > prosody-modules
view mod_service_outage_status/mod_service_outage_status.lua @ 5742:645de410dbca
mod_storage_xmlarchive: Support using requested archive-id
However diverging from the date-prefixed format means it will need to
look through the whole archive to find a particular ID.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 29 Nov 2023 11:14:21 +0100 |
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"));