Skip to content

Support retrieving a subset of subscriptions / affiliations #309

@lloydwatkin

Description

@lloydwatkin

Use case: To help us with things like this project-isizwe/wifi-chat#16 (comment)

Affiliation retrieval

Filters affiliations list to those with 'member' affiliation:

<iq type='get'
    from='[email protected]/elsinore'
    to='pubsub.shakespeare.lit'
    id='ent1'>
  <pubsub xmlns='http://jabber.org/protocol/pubsub' xmlns:bc='http://buddycloud.org/v1'>
    <affiliations node='princely_musings' bc:affiliation='member' />
  </pubsub>
</iq>

Subscription retrieval

<iq type='get'
    from='[email protected]/barracks'
    to='pubsub.shakespeare.lit'
    id='subscriptions1'>
  <pubsub xmlns='http://jabber.org/protocol/pubsub' xmlns:bc='http://buddycloud.org/v1'>
    <subscriptions bc:subscription='subscribed' />
  </pubsub>
</iq>

Rules

Only moderators and owners can retrieve outcast or none. Only users with a status of subscribed can retrieve data*.

  • Only if this matches current functionality otherwise to match current.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions