fix @context

This commit is contained in:
Matthias Pfefferle 2023-08-09 14:13:58 +02:00
parent 21afec8586
commit 7de3696c2c

View file

@ -80,9 +80,11 @@ class Collection {
} }
$response = array( $response = array(
'@context' => 'https://www.w3.org/ns/activitystreams', '@context' => array(
'https://www.w3.org/ns/activitystreams',
array( array(
'Hashtah' => 'as:Hastag', '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 ),