otherwise to_json would not work properly

This commit is contained in:
Matthias Pfefferle 2023-11-06 14:43:35 +01:00
parent 8a5e83b619
commit 7d525a8efe

View file

@ -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,