# HG changeset patch # User Emmanuel Gil Peyrot # Date 1277761648 -7200 # Node ID 80e607c0b39ea630f51332e4f62d240243679a15 # Parent d3ae2f8b685dfc57e23fba88d1f96276a5586383 Make affiliation notifications working. diff --git a/psgxs.js b/psgxs.js --- a/psgxs.js +++ b/psgxs.js @@ -960,12 +960,8 @@ function sendNotifs(notifs, type, nodeID else if (i == 'jid') args.jid = attr; } - if (!args.jid || args.jid == '') { - _('Error #2', 41) - return; - } - var affiliation = xmpp.stanza('affiliation', ); - var affiliations = xmpp.stanza('affiliations', {node: nodeID}); + var affiliations = xmpp.stanza('affiliations', {node: nodeID}) + .c('affiliation', {args}); ev.cx(affiliations); } else if (type == 'collection') { var collection = xmpp.stanza('collection', {node: nodeID});