| @@ -60,9 +60,9 @@ | ||
| 60 | 60 | |
| 61 | 61 | $state = Interactions::add_comment( $array ); |
| 62 | 62 | $reaction = null; |
| 63 | 63 | |
| 64 | - if ( $state && ! \is_wp_error( $reaction ) ) { | |
| 64 | + if ( $state && ! \is_wp_error( $state ) ) { | |
| 65 | 65 | $reaction = \get_comment( $state ); |
| 66 | 66 | } |
| 67 | 67 | |
| 68 | 68 | \do_action( 'activitypub_handled_create', $array, $user_id, $state, $reaction ); |