diff --git a/includes/rest/class-outbox-controller.php b/includes/rest/class-outbox-controller.php index 53d3ad1fd..c4182a58c 100644 --- a/includes/rest/class-outbox-controller.php +++ b/includes/rest/class-outbox-controller.php @@ -188,10 +188,10 @@ public function validate_user_id( $user_id ) { * @param \WP_REST_Request $request Request object. * @return array Response object on success, or WP_Error object on failure. */ - public function prepare_item_for_response( $item, $request ) { + public function prepare_item_for_response( $item, $request ) { // phpcs:ignore VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable $transformer = Factory::get_transformer( $item->post_content ); - $type = 'Object'; + $type = 'Activity'; $terms = wp_get_object_terms( $item->ID, 'ap_activity_type' ); if ( isset( $terms[0]->name ) ) { $type = ucfirst( $terms[0]->name );