followers list improvements

This commit is contained in:
Matthias Pfefferle 2019-03-09 01:23:10 +01:00
parent 669d0d6141
commit c5823afc8e

View file

@ -68,9 +68,14 @@ class Followers {
$followers = array();
}
$json->totlaItems = count( $followers ); // phpcs:ignore
$json->partOf = get_rest_url( null, "/activitypub/1.0/users/$user_id/followers" ); // phpcs:ignore
$json->totalItems = count( $followers ); // phpcs:ignore
$json->orderedItems = $followers; // phpcs:ignore
$json->first = $json->partOf; // phpcs:ignore
$json->first = get_rest_url( null, "/activitypub/1.0/users/$user_id/followers" );
$response = new \WP_REST_Response( $json, 200 );
$response->header( 'Content-Type', 'application/activity+json' );