From 091902710d9f9f78f1ad02f761ebb21c456b9dd7 Mon Sep 17 00:00:00 2001 From: Konstantin Obenland Date: Tue, 21 Jan 2025 14:12:29 -0600 Subject: [PATCH] Use should_be_federated() instead See #1186. --- includes/transformer/class-factory.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/includes/transformer/class-factory.php b/includes/transformer/class-factory.php index 95aa4c625..a4662eca4 100644 --- a/includes/transformer/class-factory.php +++ b/includes/transformer/class-factory.php @@ -8,10 +8,11 @@ namespace Activitypub\Transformer; use WP_Error; +use Activitypub\Comment as Comment_Helper; use function Activitypub\is_user_disabled; use function Activitypub\is_post_disabled; -use function Activitypub\is_local_comment; + /** * Transformer Factory. */ @@ -84,7 +85,7 @@ public static function get_transformer( $data ) { } break; case 'WP_Comment': - if ( ! is_local_comment( $data ) ) { + if ( Comment_Helper::should_be_federated( $data ) ) { return new Comment( $data ); } break;