Salmon queue handler getByID for exception throwing

This commit is contained in:
Mikael Nordfeldth 2016-01-14 01:51:00 +01:00
parent 0ddaa6ff75
commit cf7d2f4d0f

View File

@ -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);