diff plugins/pubsub.js @ 87:0f6f213f0a33

Makes the PubSub items method to return the stanza object.
author Sonny Piers <sonny.piers@gmail.com>
date Tue, 21 Feb 2012 19:27:17 +0100
parents 0c10c9a69c69
children 55548845b177
line wrap: on
line diff
--- 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) {