From f79cd8cee307899c6ee294cd7d540cac92074367 Mon Sep 17 00:00:00 2001 From: Miguel Dantas Date: Sun, 1 Sep 2019 00:48:39 +0100 Subject: [PATCH] [CORE] Fix small bug where Notice was sending a JSON representation to the queue, instead of sending itself --- classes/Notice.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/classes/Notice.php b/classes/Notice.php index 4c8d0d1d88..6d67d0d9d1 100644 --- a/classes/Notice.php +++ b/classes/Notice.php @@ -2546,11 +2546,8 @@ 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($json, 'distrib'); + $qm->enqueue($this, 'distrib'); } catch (Exception $e) { // If the exception isn't transient, this // may throw more exceptions as DQH does