Change some Salmon events and similar
Use Profile instead of User and (if we know it) send along the target profile, so a Diaspora plugin can encrypt to the receiver.
This commit is contained in:
@@ -40,8 +40,9 @@ class SalmonQueueHandler extends QueueHandler
|
||||
assert(is_string($data['entry']));
|
||||
|
||||
$actor = Profile::getKV($data['actor']);
|
||||
$target = array_key_exists('target', $data) ? Profile::getKV($data['target']) : null;
|
||||
|
||||
Salmon::post($data['salmonuri'], $data['entry'], $actor->getUser());
|
||||
Salmon::post($data['salmonuri'], $data['entry'], $actor, $target);
|
||||
|
||||
// @fixme detect failure and attempt to resend
|
||||
return true;
|
||||
|
Reference in New Issue
Block a user