| @@ -88,13 +88,8 @@ | ||
| 88 | 88 | if ( was_comment_received( $comment ) ) { |
| 89 | 89 | \WP_CLI::error( 'This comment was received via ActivityPub and cannot be deleted or updated.' ); |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | - $result = add_to_outbox( $comment, 'Update', $comment->user_id ); | |
| 93 | - | |
| 94 | - if ( \is_wp_error( $result ) ) { | |
| 95 | - \WP_CLI::error( $result->get_error_message() ); | |
| 96 | - } | |
| 97 | - | |
| 92 | + add_to_outbox( $comment, 'Update', $comment->user_id ); | |
| 98 | 93 | \WP_CLI::success( '"Update" activity is queued.' ); |
| 99 | 94 | } |
| 100 | 95 | } |