followers list improvements
This commit is contained in:
parent
669d0d6141
commit
c5823afc8e
1 changed files with 6 additions and 1 deletions
|
@ -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' );
|
||||
|
||||
|
|
Loading…
Reference in a new issue