Prevent pubsub from sending last item on subscription

Is there anyway to prevent pubsub from sending the last published item on a successful subscription? I am running Ejabberd 2.1.3 using the hometree_odbc pubsub module. Thanks!

Dave

Maybe there is something

Maybe there is something defined in XEP-0060, and implemented in mod_pubsub.

Hmm I think I found the

Hmm I think I found the issue.

When creating the nodes, the pubsub#send_last_published_item setting is set to 'never' but in the table pubsub_node_option, the send_last_published_item value is 'on_sub_and_presence'. I will test more.

The configuration form sent when creating the node has this <field var='pubsub#send_last_published_item'><value>never</value></field>, is that correct?

See the XEP

chenosaurus wrote:

The configuration form sent when creating the node has this <field var='pubsub#send_last_published_item'><value>never</value></field>, is that correct?

Seems correct, according to the example http://xmpp.org/extensions/xep-0060.html#example-136

See also the possible values in http://xmpp.org/extensions/xep-0060.html#example-139

Syndicate content