| @@ -223,17 +223,10 @@ | ||
| 223 | 223 | // Call Move::internally for this actor. |
| 224 | 224 | $result = self::internally( $old_actor_id, $actor_id ); |
| 225 | 225 | |
| 226 | 226 | if ( \is_wp_error( $result ) ) { |
| 227 | - /** | |
| 228 | - * Fires when an actor move fails during domain change. | |
| 229 | - * | |
| 230 | - * @since 8.1.0 | |
| 231 | - * | |
| 232 | - * @param \WP_Error $result The error that occurred. | |
| 233 | - * @param string $actor_id The actor ID that failed to move. | |
| 234 | - */ | |
| 235 | - \do_action( 'activitypub_move_failed', $result, $actor_id ); | |
| 227 | + // Log the error and continue with the next actor. | |
| 228 | + Debug::write_log( 'Error moving actor: ' . $actor_id . ' - ' . $result->get_error_message() ); | |
| 236 | 229 | continue; |
| 237 | 230 | } |
| 238 | 231 | |
| 239 | 232 | $json = str_replace( $to_host, $from_host, $actor->to_json() ); |