WARNING: this module does not implement any type of access control and will effectively make all pubsub data public on the component it is loaded onto.
This module lets you fetch the items of a specific pubsub node via an HTTP GET request. I implemented it for a read-only view of comments published according to XEP-0277.
Nothing is configurable, just load the module on a specific component.
"comments.example.com" "pubsub"
Component = { "pubsub_get" } modules_enabled
To query the items of the node
“urn:xmpp:microblog:0:comments/some-article”, issue a GET for
https://comments.example.com:5281/pubsub_get?node=urn:xmpp:microblog:0:comments/some-article
.
This will return a JSON object containing the items data.
Requires Prosody trunk / 0.12
With the plugin installer in Prosody 0.12 you can use:
sudo prosodyctl install --server=https://modules.prosody.im/rocks/ mod_pubsub_get
For earlier versions see the documentation for installing 3rd party modules