Salmon queue handler getByID for exception throwing
This commit is contained in:
parent
0ddaa6ff75
commit
cf7d2f4d0f
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user