From fb923a63c3e41b2031f525100965802b5484e2bd Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Sun, 21 Oct 2018 17:22:16 -0400 Subject: [PATCH] Properly format the link and use type Note --- includes/client/posts.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/client/posts.php b/includes/client/posts.php index c80b38d..9cb1a3f 100644 --- a/includes/client/posts.php +++ b/includes/client/posts.php @@ -52,7 +52,7 @@ function post_to_object( $post ) { ENT_QUOTES, 'UTF-8' ); - $summary = $summary . '

' . $permalink; + $summary = "$summary

$permalink"; } $matches = array(); if ( preg_match( '/(.+)__trashed\/$/', $permalink, $matches ) ) { @@ -60,7 +60,7 @@ function post_to_object( $post ) { } $object = array( '@context' => array( 'https://www.w3.org/ns/activitystreams' ), - 'type' => 'Article', + 'type' => 'Note', 'name' => $post->post_title, 'content' => $summary, 'attributedTo' => get_rest_url(