Skip to content

Commit 5c78786

Browse files
author
Lloyd Watkin
committed
Fix issues around affiliations gathering
1 parent c13eb50 commit 5c78786

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

  • src/main/java/org/buddycloud/channelserver/packetprocessor/iq/namespace/pubsub/get

src/main/java/org/buddycloud/channelserver/packetprocessor/iq/namespace/pubsub/get/AffiliationsGet.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public void process(Element elm, JID actorJID, IQ reqIQ, Element rsm) throws Exc
5454

5555

5656
Element pubsub = result.setChildElement(XMLConstants.PUBSUB_ELEM, namespace);
57-
Element affiliations = pubsub.addElement(XMLConstants.AFFILIATION_ELEM);
57+
Element affiliations = pubsub.addElement(XMLConstants.AFFILIATIONS_ELEM);
5858

5959
if (actorJid == null) {
6060
actorJid = requestIq.getFrom();
@@ -147,6 +147,6 @@ private void makeRemoteRequest(String node) throws InterruptedException {
147147

148148
@Override
149149
public boolean accept(Element elm) {
150-
return XMLConstants.AFFILIATION_ELEM.equals(elm.getName());
150+
return XMLConstants.AFFILIATIONS_ELEM.equals(elm.getName());
151151
}
152152
}

0 commit comments

Comments
 (0)