changeset 5801:73887dcb2129

mod_pubsub_serverinfo: New module that uses pub/sub to make accessible server info This first implemetnation is laughably simple: it only adds a disco#info feature. This flags 'opt-in' for inclusion of local domain names in the data exposed by other domains (per the domain), which will allow servers to be listed in the XMPP Network Graph at https://xmppnetwork.goodbytes.im Hopefully, this bare-boned implementation acts as a stepping stone for future improvements.
author Guus der Kinderen <guus.der.kinderen@gmail.com>
date Thu, 28 Dec 2023 11:02:35 +0100
parents 8566a423da88
children f6a2602129c8
files mod_pubsub_serverinfo/README.markdown mod_pubsub_serverinfo/mod_pubsub_serverinfo.lua
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mod_pubsub_serverinfo/README.markdown	Thu Dec 28 11:02:35 2023 +0100
@@ -0,0 +1,8 @@
+---
+labels:
+- 'Statistics'
+...
+
+Exposes server information over Pub/Sub per ProtoXEP: PubSub Server Information.
+
+This initial version only announces support (used to 'opt-in', per the XEP). It does not publish any data. This is intended to be a future addition to this mod.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/mod_pubsub_serverinfo/mod_pubsub_serverinfo.lua	Thu Dec 28 11:02:35 2023 +0100
@@ -0,0 +1,1 @@
+module:add_feature("urn:xmpp:serverinfo:0");