]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't store the notice object for distrib queue handler, just id
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 7 Jan 2016 19:24:59 +0000 (20:24 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 7 Jan 2016 19:24:59 +0000 (20:24 +0100)
classes/Notice.php

index f85e9ea233fe973ee01342bef56fa1156594a816..b4e68c66c6ae0be652257b5da3855cc7d125b3e9 100644 (file)
@@ -2403,8 +2403,11 @@ class Notice extends Managed_DataObject
         // If there's a failure, we want to _force_
         // distribution at this point.
         try {
+            $json = json_encode((object)array('id' => $this->getID(),
+                                              'type' => 'Notice',
+                                              ));
             $qm = QueueManager::get();
-            $qm->enqueue($this, 'distrib');
+            $qm->enqueue($json, 'distrib');
         } catch (Exception $e) {
             // If the exception isn't transient, this
             // may throw more exceptions as DQH does