From d6842616c7b7435a46a33ca28a47c06132a98ebd Mon Sep 17 00:00:00 2001 From: Matthias Pfefferle Date: Fri, 12 Jan 2024 16:51:33 +0100 Subject: [PATCH] fallback to ID id URL is not set --- includes/class-mention.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class-mention.php b/includes/class-mention.php index 0b8c0b5e5..fee01b20b 100644 --- a/includes/class-mention.php +++ b/includes/class-mention.php @@ -102,7 +102,7 @@ public static function replace_with_links( $result ) { $username = $metadata['preferredUsername']; } - $url = isset( $metadata['url'] ) ? $metadata['url'] : $metadata['url']; + $url = isset( $metadata['url'] ) ? $metadata['url'] : $metadata['id']; if ( \is_array( $url ) ) { $url = $url[0];