Re: [prosody-dev] Re: mod_pubsub_serverinfo

2023-12-28 Thread 'Kim Alvefur' via prosody-dev

Hi,

Thanks, applied as https://hg.prosody.im/prosody-modules/rev/73887dcb2129

On Thu, Dec 28, 2023 at 02:26:05AM -0800, Guus der Kinderen wrote:

\o/

Much gnashing of teeth (and a removal of Mercurial installed through snap)
later, computers finally started to comply. Here's the patch that's similar
to the archive that I linked to earlier.

- Guus

# HG changeset patch
# User Guus der Kinderen 
# Date 1703757755 -3600
#  Thu Dec 28 11:02:35 2023 +0100
# Node ID e5dea4d2c9af19c968e6f95c44abd3275203eeed
# Parent  8566a423da88f8db420bade5a068c90c2c61b074
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.

diff -r 8566a423da88 -r e5dea4d2c9af mod_pubsub_serverinfo/README.markdown
--- /dev/null Thu Jan 01 00:00:00 1970 +
+++ 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.
diff -r 8566a423da88 -r e5dea4d2c9af
mod_pubsub_serverinfo/mod_pubsub_serverinfo.lua
--- /dev/null Thu Jan 01 00:00:00 1970 +
+++ 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");

On Wednesday, December 27, 2023 at 12:24:40 PM UTC+1 Guus der Kinderen
wrote:


Hi!

I was intending to provide the bare bone Prosody module that implements
the disco#info feature discovery for the protoxep PubSub Server
Information (https://github.com/xsf/xeps/pull/1312) but computers appear
to be fighting me at every opportunity today (HG insists that an editor is
exiting with status 126, preventing me from making commits, and this
mailinglist doesn't seem to allow me to add attachments).

As a workaround, I've uploaded the mod as an archive to my website,
available for download at
https://goodbytes.nl/mod_pubsub_serverinfo.tar.gz - Would someone please
review this and add it to the community modules?

The module itself 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.

Kind regards,

  Guus




--
You received this message because you are subscribed to the Google Groups 
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prosody-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prosody-dev/786d1f59-47ea-4ec7-844e-68fcae255e99n%40googlegroups.com.


--
You received this message because you are subscribed to the Google Groups 
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prosody-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prosody-dev/ZY3k-TWSY0F3RfSj%40diploria.zash.se.


[prosody-dev] Re: mod_pubsub_serverinfo

2023-12-28 Thread Guus der Kinderen
\o/

Much gnashing of teeth (and a removal of Mercurial installed through snap) 
later, computers finally started to comply. Here's the patch that's similar 
to the archive that I linked to earlier.

 - Guus

# HG changeset patch
# User Guus der Kinderen 
# Date 1703757755 -3600
#  Thu Dec 28 11:02:35 2023 +0100
# Node ID e5dea4d2c9af19c968e6f95c44abd3275203eeed
# Parent  8566a423da88f8db420bade5a068c90c2c61b074
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.

diff -r 8566a423da88 -r e5dea4d2c9af mod_pubsub_serverinfo/README.markdown
--- /dev/null Thu Jan 01 00:00:00 1970 +
+++ 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.
diff -r 8566a423da88 -r e5dea4d2c9af 
mod_pubsub_serverinfo/mod_pubsub_serverinfo.lua
--- /dev/null Thu Jan 01 00:00:00 1970 +
+++ 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");

On Wednesday, December 27, 2023 at 12:24:40 PM UTC+1 Guus der Kinderen 
wrote:

> Hi!
>
> I was intending to provide the bare bone Prosody module that implements 
> the disco#info feature discovery for the protoxep PubSub Server 
> Information (https://github.com/xsf/xeps/pull/1312) but computers appear 
> to be fighting me at every opportunity today (HG insists that an editor is 
> exiting with status 126, preventing me from making commits, and this 
> mailinglist doesn't seem to allow me to add attachments).
>
> As a workaround, I've uploaded the mod as an archive to my website, 
> available for download at 
> https://goodbytes.nl/mod_pubsub_serverinfo.tar.gz - Would someone please 
> review this and add it to the community modules?
>
> The module itself 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.
>
> Kind regards,
>
>   Guus
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"prosody-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to prosody-dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/prosody-dev/786d1f59-47ea-4ec7-844e-68fcae255e99n%40googlegroups.com.