Mercurial > prosody-modules
comparison mod_service_outage_status/mod_service_outage_status.lua @ 5338:03044a6f5f4c
mod_service_outage_status: XEP-0455: Service Outage Status
Only the out of band part so far.
The in-band pubsub part would need '+notify' support in mod_pubsub,
since mod_pep does not serve the bare-host-JID.
All the hard parts of this XEP is elsewhere, i.e. hosting the document
somewhere reliable.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 10 Apr 2023 13:24:03 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
5337:8d8e85d6dc91 | 5338:03044a6f5f4c |
---|---|
1 local dataforms = require "util.dataforms"; | |
2 | |
3 local form_layout = dataforms.new({ | |
4 { type = "hidden"; var = "FORM_TYPE"; value = "urn:xmpp:sos:0" }; | |
5 { type = "list-multi"; name = "addrs"; var = "external-status-addresses" }; | |
6 }); | |
7 | |
8 local addresses = module:get_option_array("outage_status_urls"); | |
9 module:add_extension(form_layout:form({ addrs = addresses }, "result")); |