* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+if (!defined('STATUSNET')) {
+ exit(1);
+}
+
/**
* Send a Salmon notification in the background.
* @package OStatusPlugin
assert(is_string($data['salmonuri']));
assert(is_string($data['entry']));
- $salmon = new Salmon();
- $salmon->post($data['salmonuri'], $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, $target);
// @fixme detect failure and attempt to resend
return true;