From: Mikael Nordfeldth Date: Thu, 7 Jan 2016 19:24:59 +0000 (+0100) Subject: Don't store the notice object for distrib queue handler, just id X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3eebf2a3532daf89327a095b8b1dd4ad79ab6d18;p=quix0rs-gnu-social.git Don't store the notice object for distrib queue handler, just id --- diff --git a/classes/Notice.php b/classes/Notice.php index f85e9ea233..b4e68c66c6 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -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