diff --git a/includes/rest/class-collection.php b/includes/rest/class-collection.php index 00b676d..c59bc5d 100644 --- a/includes/rest/class-collection.php +++ b/includes/rest/class-collection.php @@ -80,9 +80,11 @@ class Collection { } $response = array( - '@context' => 'https://www.w3.org/ns/activitystreams', - array( - 'Hashtah' => 'as:Hastag', + '@context' => array( + 'https://www.w3.org/ns/activitystreams', + array( + 'Hastag' => 'as:Hastag', + ), ), 'id' => get_rest_url_by_path( sprintf( 'users/%d/collections/tags', $user_id ) ), 'totalItems' => count( $tags ),