#1973 Add pubsub#num_subscribers element when retrieving a Pubsub/PEP node metadata

Reporter edhelas
Owner Nobody
Created
Updated
Stars ★★ (2)
Tags
  • Priority-Medium
  • Status-New
  • Type-Enhancement
  1. edhelas on

    It would be nice if Prosody return the pubsub#num_subscribers elements in the node metadata. Example: <iq xmlns="jabber:client" from="edhelas@jabber.fr/Movim.7wkZ6a~uFOO3y3GWENz" to="edhelas@jabber.fr" type="get" id="hAWmlV"> <query xmlns="http://jabber.org/protocol/disco#info" node="urn:xmpp:microblog:0"/> </iq> <iq id='hAWmlV' to='edhelas@jabber.fr/Movim.7wkZ6a~uFOO3y3GWENz' from='edhelas@jabber.fr' type='result'> <query xmlns='http://jabber.org/protocol/disco#info' node='urn:xmpp:microblog:0'> <feature var='http://jabber.org/protocol/disco#info'/> <feature var='http://jabber.org/protocol/disco#items'/> <identity type='leaf' category='pubsub'/> <x xmlns='jabber:x:data' type='result'> <field var='FORM_TYPE' type='hidden'> <value>http://jabber.org/protocol/pubsub#meta-data</value> </field> <field var='pubsub#title' type='text-single'/> <field var='pubsub#description' type='text-single'/> <field var='pubsub#type' type='text-single'/> <field var='pubsub#access_model' type='text-single'/> <field var='pubsub#publish_model' type='text-single'/> <field var='pubsub#num_subscribers' type='text-single'> <value>12</value> </field> </x> </query> </iq> This will allow Movim to display the amount of followers on an account blog.

  2. edhelas on

    For info, related issue in ejabberd https://github.com/processone/ejabberd/issues/4481

New comment

Not published. Used for spam prevention and optional update notifications.