From cb3e30184650a9e13121e548af79ddce71c21f3d Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Mon, 29 Oct 2018 19:13:59 -0400 Subject: [PATCH] Send posts as an Article --- includes/client/posts.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/includes/client/posts.php b/includes/client/posts.php index c3555d6..2c7fe74 100644 --- a/includes/client/posts.php +++ b/includes/client/posts.php @@ -63,14 +63,14 @@ function post_to_object( $post ) { } $object = array( '@context' => array( 'https://www.w3.org/ns/activitystreams' ), - 'type' => 'Note', + 'type' => 'Article', 'name' => $post->post_title, - 'content' => $summary, + 'content' => $post->post_content, + 'summary' => $summary, 'attributedTo' => get_rest_url( null, sprintf( '/pterotype/v1/actor/%s', PTEROTYPE_BLOG_ACTOR_SLUG ) ), 'url' => $permalink, - 'summary' => $post->post_title, ); $existing = get_existing_object( $permalink ); if ( $existing ) {