Mercurial > eldonilo > lightstring
diff plugins/pubsub.js @ 106:c06ec02217ee
many changes
author | Sonny Piers <sonny@fastmail.net> |
---|---|
date | Tue, 26 Jun 2012 12:02:14 +0200 |
parents | 646695bde8e9 |
children |
line wrap: on
line diff
old mode 100644 new mode 100755 --- a/plugins/pubsub.js +++ b/plugins/pubsub.js @@ -44,7 +44,13 @@ return stanza + "</items></pubsub></iq>"; }, affiliations: function(aTo, aNode) { - return "<iq type='get' to='" + aTo + "'><pubsub xmlns='" + Lightstring.ns.pubsub_owner + "'><affiliations node='" + aNode + "'/></pubsub></iq>"; + return( + "<iq type='get' to='" + aTo + "'>" + + "<pubsub xmlns='" + Lightstring.ns.pubsub_owner + "'>" + + "<affiliations node='" + aNode + "'/>" + + "</pubsub>" + + "</iq>" + ); }, publish: function(aTo, aNode, aItem, aId) { return "<iq type='set' to='" + aTo + "'><pubsub xmlns='" + Lightstring.ns.pubsub + "'><publish node='" + aNode + "'><item id='" + aId + "'>" + aItem + "</item></publish></pubsub></iq>";