Hello, is it possible to disable pubsub auto create node function ?
When I publish data to not-existing node, the same named node is automatically created. I would like to disable this function but I cannot find the way to do. Can I set the function as disable in configuration file such as ejabbed.yml ?
I'm happy if you give me any advises.
sorry to hijack your thread
sorry to hijack your thread but I am learning about all the ejabberd modules and I am curious what mod_pubsub is used for. Can you enlighten me ?
Hi, I had same problem with
Hi,
I had same problem with you and finally found the solution.
XEP-0060 allows XMPP server (PubSub service) to create topic automatically when it does not exist.
http://www.xmpp.org/extensions/xep-0060.html#publisher-publish-autocreate
mod_pubsub plugins (flat, hometree and pep) enables this feature by features/0 function with hard-coded.
If you comment out following line in definition of features/0 in node_flat.erl and use "flat" as mod_pubsub plugins, you can stop automatic creation.
This is hard-coded feature so you cannot change this feature with ejabberd.yml configurations.