fix @context
This commit is contained in:
parent
21afec8586
commit
7de3696c2c
1 changed files with 5 additions and 3 deletions
|
@ -80,9 +80,11 @@ class Collection {
|
||||||
}
|
}
|
||||||
|
|
||||||
$response = array(
|
$response = array(
|
||||||
'@context' => 'https://www.w3.org/ns/activitystreams',
|
'@context' => array(
|
||||||
array(
|
'https://www.w3.org/ns/activitystreams',
|
||||||
'Hashtah' => 'as:Hastag',
|
array(
|
||||||
|
'Hastag' => 'as:Hastag',
|
||||||
|
),
|
||||||
),
|
),
|
||||||
'id' => get_rest_url_by_path( sprintf( 'users/%d/collections/tags', $user_id ) ),
|
'id' => get_rest_url_by_path( sprintf( 'users/%d/collections/tags', $user_id ) ),
|
||||||
'totalItems' => count( $tags ),
|
'totalItems' => count( $tags ),
|
||||||
|
|
Loading…
Reference in a new issue