]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Salmon queue handler getByID for exception throwing
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 14 Jan 2016 00:51:00 +0000 (01:51 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 14 Jan 2016 00:51:00 +0000 (01:51 +0100)
plugins/OStatus/lib/salmonqueuehandler.php

index fbc03c3954d96bd5f1bb2665ff6ed397b7d70363..b5142a94243ba09a1829c231d90229c5875ae1d1 100644 (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);