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(
|
||||
'@context' => 'https://www.w3.org/ns/activitystreams',
|
||||
'@context' => array(
|
||||
'https://www.w3.org/ns/activitystreams',
|
||||
array(
|
||||
'Hashtah' => 'as:Hastag',
|
||||
'Hastag' => 'as:Hastag',
|
||||
),
|
||||
),
|
||||
'id' => get_rest_url_by_path( sprintf( 'users/%d/collections/tags', $user_id ) ),
|
||||
'totalItems' => count( $tags ),
|
||||
|
|
Loading…
Reference in a new issue