From 7d525a8efe1dc11ca6628f1aaf69a03b2b1098cf Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Mon, 6 Nov 2023 14:43:35 +0100 Subject: [PATCH] otherwise to_json would not work properly --- includes/transformer/class-post.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/transformer/class-post.php b/includes/transformer/class-post.php index 252b5b5..65b1297 100644 --- a/includes/transformer/class-post.php +++ b/includes/transformer/class-post.php @@ -626,10 +626,10 @@ class Post { } } - $replies = (object) array( + $replies = array( 'type' => 'Collection', 'id' => \add_query_arg( array( 'replies' => '' ), $this->get_id() ), - 'first' => (object) array( + 'first' => array( 'type' => 'CollectionPage', 'partOf' => \add_query_arg( array( 'replies' => '' ), $this->get_id() ), 'items' => $items,