PluginProbe
ActivityPub / 9.2.1
ActivityPub v9.2.1
9.3.1 9.3.0 9.2.2 9.2.1 9.2.0 9.1.0 9.0.2 9.0.1 9.0.0 8.3.0 8.2.1 8.2.0 8.1.1 1.0.5 1.0.6 1.0.7 1.0.8 1.0.9 1.1.0 1.2.0 1.3.0 2.0.0 2.0.1 2.1.0 2.1.1 All 160 releases
← All changes | includes/cli/class-comment-command.php +6 -1 8.2.09.2.1 View file →
@@ -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 }