<div dir="ltr"><p style="margin:0px;font-size:16px;font-family:Menlo"><span style="font-family:arial,sans-serif;font-size:13px">The configuration below is the pubsub configuration that I use</span><br style="font-family:arial,sans-serif;font-size:13px"></p><p style="margin:0px;font-size:16px;font-family:Menlo"><br></p><p style="margin:0px;font-size:16px;font-family:Menlo">mod_pubsub: </p>
<p style="margin:0px;font-size:16px;font-family:Menlo">    access_createnode: pubsub_createnode</p>
<p style="margin:0px;font-size:16px;font-family:Menlo">    ## reduces resource comsumption, but XEP incompliant</p>
<p style="margin:0px;font-size:16px;font-family:Menlo">    ignore_pep_from_offline: true</p>
<p style="margin:0px;font-size:16px;font-family:Menlo">    ## XEP compliant, but increases resource comsumption</p>
<p style="margin:0px;font-size:16px;font-family:Menlo">    ## ignore_pep_from_offline: false</p>
<p style="margin:0px;font-size:16px;font-family:Menlo">    last_item_cache: false</p>
<p style="margin:0px;font-size:16px;font-family:Menlo">    plugins: </p>
<p style="margin:0px;font-size:16px;font-family:Menlo">      - "pep"</p>
<p style="margin:0px;font-size:16px;font-family:Menlo">      - "hometree"</p>
<p style="margin:0px;font-size:16px;font-family:Menlo">      - "flat" # pep requires mod_caps</p><p style="margin:0px;font-size:16px;font-family:Menlo"><br></p><p style="margin:0px;font-size:16px;font-family:Menlo"><br></p><p style="margin:0px;font-size:16px;font-family:Menlo"><span style="font-family:arial,sans-serif;font-size:13px">REQUIREMENT</span></p><p style="margin:0px;font-size:16px;font-family:Menlo"><span style="font-family:arial,sans-serif;font-size:13px"><br></span></p><p style="margin:0px">1. Notify users in my roster of profile picture or status changes (similar to WhatsApp)</p><p style="margin:0px;font-size:16px;font-family:Menlo"><span style="font-family:arial,sans-serif;font-size:13px"><br></span></p><p style="margin:0px;font-size:16px;font-family:Menlo"><span style="font-family:arial,sans-serif;font-size:13px">PROBLEM</span></p><p style="margin:0px;font-size:16px;font-family:Menlo"><span style="font-family:arial,sans-serif;font-size:13px"><br></span></p><p style="margin:0px">1. I publish the custom event from the client.</p><p style="margin:0px"><br></p><p style="margin:0px">XML stanza sent from client</p><p style="margin:0px"><br></p><p style="margin:0px"><iq id='Uhs9z-110' type='set'></p><p style="margin:0px">    <pubsub</p><p style="margin:0px">        xmlns='<a href="http://jabber.org/protocol/pubsub">http://jabber.org/protocol/pubsub</a>'></p><p style="margin:0px">        <publish node='<a href="https://temp.com/userinfo">https://temp.com/userinfo</a>'></p><p style="margin:0px">            <item id="U6z3olw0JI5UPAU2"></p><p style="margin:0px">                <userinfo</p><p style="margin:0px">                    xmlns='<a href="https://temp.com/userinfo">https://temp.com/userinfo</a>'></p><p style="margin:0px">                    <status>sleeping</status></p><p style="margin:0px">                </userinfo></p><p style="margin:0px">            </item></p><p style="margin:0px">        </publish></p><p style="margin:0px">    </pubsub></p><p style="margin:0px"></iq> </p><p style="margin:0px"><br></p><p style="margin:0px"><br></p><p style="margin:0px">XML stanza received as reply</p><p style="margin:0px"><br></p><p style="margin:0px"><iq from='<a href="mailto:bob@temp.com">bob@temp.com</a>' to='<a href="http://bob@temp.com/Smack">bob@temp.com/Smack</a>' id='Uhs9z-110' type='result'></p><p style="margin:0px">    <pubsub</p><p style="margin:0px">        xmlns='<a href="http://jabber.org/protocol/pubsub">http://jabber.org/protocol/pubsub</a>'></p><p style="margin:0px">        <publish node='<a href="https://temp.com/userinfo">https://temp.com/userinfo</a>'></p><p style="margin:0px">            <item id='U6z3olw0JI5UPAU2'/></p><p style="margin:0px">        </publish></p><p style="margin:0px">    </pubsub></p><p style="margin:0px"></iq></p><p style="margin:0px"><br></p><p style="margin:0px">I also received the published event within a message stanza.</p><p style="margin:0px"><br></p><p style="margin:0px">The problem is when ever any contact who has a presence subscription to the publishing client comes online, I receive the following message stanza</p><p style="margin:0px"><br></p><p style="margin:0px"><message from='<a href="mailto:bob@temp.com">bob@temp.com</a>' to='<a href="http://bob@54.183.182.28/Smack">bob@54.183.182.28/Smack</a>'></p><p style="margin:0px">        <event</p><p style="margin:0px">            xmlns='<a href="http://jabber.org/protocol/pubsub#event">http://jabber.org/protocol/pubsub#event</a>'></p><p style="margin:0px">            <items node='<a href="https://temp.com/userinfo">https://temp.com/userinfo</a>'></p><p style="margin:0px">                <item id='MP5OuH4hqxcl2Oyl'></p><p style="margin:0px">                    <userinfo</p><p style="margin:0px">                        xmlns='<a href="https://baxder.com/userinfo">https://baxder.com/userinfo</a>'></p><p style="margin:0px">                        <status>yawning</status></p><p style="margin:0px">                    </userinfo><br></p><p style="margin:0px">                </item></p><p style="margin:0px">            </items></p><p style="margin:0px">        </event></p><p style="margin:0px">        <delay</p><p style="margin:0px">            xmlns='urn:xmpp:delay' from=<a href="http://bob@temp.com/Smack">bob@temp.com/Smack</a>' stamp='2015-06-24T10:57:43Z'></p><p style="margin:0px">        </delay></p><p style="margin:0px">    </message></p><p style="margin:0px"><br></p><p style="margin:0px">Why am I receiving the same message stanza that I published when ever any of my contacts who has presence subscription to me come online ?</p><p style="margin:0px"><br></p></div>