# HG changeset patch # User Sonny Piers # Date 1329848837 -3600 # Node ID 0f6f213f0a33612d6645dd0fe5f8bfc087b04dc0 # Parent 0c10c9a69c69a2846dd0d43224917c5fb5886590 Makes the PubSub items method to return the stanza object. diff --git a/plugins/pubsub.js b/plugins/pubsub.js --- a/plugins/pubsub.js +++ b/plugins/pubsub.js @@ -87,9 +87,10 @@ item.miniature = miniature.getAttribute('href'); items.push(item); }; + stanza.items = items; if (aResult) - aResult(items); + aResult(stanza); }, aError); }, create: function(aTo, aNode, aFields, aResult, aError) {