| @@ -88,8 +88,13 @@ | ||
| 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 | - add_to_outbox( $comment, 'Update', $comment->user_id ); | |
| 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 | + | |
| 93 | 98 | \WP_CLI::success( '"Update" activity is queued.' ); |
| 94 | 99 | } |
| 95 | 100 | } |