Implement delivery

This commit is contained in:
Jeremy Dormitzer 2018-09-09 18:51:59 -06:00
parent 95bc5557f8
commit ea2ad27ba2

View File

@ -75,8 +75,12 @@ function retrieve_recipients( $url ) {
function post_activity_to_inboxes( $activity, $recipients ) {
foreach ( $inbox as $recipients ) {
// TODO
wp_remote_post();
$args = array(
'body' => $activity,
'headers' => array( 'Content-Type' => 'application/ld+json' )
);
// TODO do something with the result?
wp_remote_post( $inbox, $args );
}
}
?>