diff --git a/includes/rest/class-followers.php b/includes/rest/class-followers.php index d543314..4a12404 100644 --- a/includes/rest/class-followers.php +++ b/includes/rest/class-followers.php @@ -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' );