From: Mikael Nordfeldth Date: Thu, 14 Jan 2016 00:51:00 +0000 (+0100) Subject: Salmon queue handler getByID for exception throwing X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=cf7d2f4d0f5013a6be0734b998bc1231eaaa69cc;p=quix0rs-gnu-social.git Salmon queue handler getByID for exception throwing --- 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);