From 6e374b716a945f030384ad4d6af7952cddf4bd1a Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Thu, 25 Apr 2024 20:56:22 +0200 Subject: [PATCH] do not announce replies --- includes/class-activity-dispatcher.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/includes/class-activity-dispatcher.php b/includes/class-activity-dispatcher.php index 16387154..edc41f37 100644 --- a/includes/class-activity-dispatcher.php +++ b/includes/class-activity-dispatcher.php @@ -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 );