From cf7d2f4d0f5013a6be0734b998bc1231eaaa69cc Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Thu, 14 Jan 2016 01:51:00 +0100 Subject: [PATCH] Salmon queue handler getByID for exception throwing --- plugins/OStatus/lib/salmonqueuehandler.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/plugins/OStatus/lib/salmonqueuehandler.php b/plugins/OStatus/lib/salmonqueuehandler.php index fbc03c3954..b5142a9424 100644 --- a/plugins/OStatus/lib/salmonqueuehandler.php +++ b/plugins/OStatus/lib/salmonqueuehandler.php @@ -39,8 +39,8 @@ class SalmonQueueHandler extends QueueHandler assert(is_string($data['salmonuri'])); assert(is_string($data['entry'])); - $actor = Profile::getKV($data['actor']); - $target = array_key_exists('target', $data) ? Profile::getKV($data['target']) : null; + $actor = Profile::getByID($data['actor']); + $target = Profile::getByID($data['target']); Salmon::post($data['salmonuri'], $data['entry'], $actor, $target); -- 2.39.5