Skip to content

Commit

Permalink
do not announce replies
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Apr 25, 2024
1 parent d173690 commit 6e374b7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions includes/class-activity-dispatcher.php
Expand Up @@ -98,6 +98,11 @@ public static function send_announce( $wp_object, $type ) {
return;
}

// do not announce replies
if ( $wp_object instanceof WP_Comment ) {
return;
}

$transformer = Factory::get_transformer( $wp_object );
$transformer->change_wp_user_id( Users::BLOG_USER_ID );

Expand Down

0 comments on commit 6e374b7

Please sign in to comment.