From 3db9489b5c48ce273f3a0326c34073f09f066692 Mon Sep 17 00:00:00 2001 From: Alex Kirk Date: Mon, 12 Dec 2022 16:39:55 +0100 Subject: [PATCH] phpcs --- includes/class-mention.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/class-mention.php b/includes/class-mention.php index 886df58..ddae996 100644 --- a/includes/class-mention.php +++ b/includes/class-mention.php @@ -35,10 +35,9 @@ class Mention { * @return string the final string */ public static function replace_with_links( $result ) { - error_log($result[0]); $metadata = \ActivityPub\get_remote_metadata_by_actor( $result[0] ); if ( ! is_wp_error( $metadata ) ) { - $username = ltrim( $result[0], '@'); + $username = ltrim( $result[0], '@' ); if ( ! empty( $metadata['name'] ) ) { $username = $metadata['name']; }