]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - plugins/OStatus/lib/hubdistribqueuehandler.php
Added licensing info and a note about migrating
[quix0rs-gnu-social.git] / plugins / OStatus / lib / hubdistribqueuehandler.php
index 245a57f7200dac1e321d3aefe98661d9edaec724..30a427e3fca8b79b1fe4c40403b2a6f77de70b44 100644 (file)
@@ -124,10 +124,7 @@ class HubDistribQueueHandler extends QueueHandler
         common_log(LOG_INFO, "Preparing $sub->N PuSH distribution(s) for $sub->topic");
         $qm = QueueManager::get();
         while ($sub->fetch()) {
-            common_log(LOG_INFO, "Prepping PuSH distribution to $sub->callback for $sub->topic");
-            $data = array('sub' => clone($sub),
-                          'atom' => $atom);
-            $qm->enqueue($data, 'hubout');
+            $sub->distribute($atom);
         }
     }