Skip to content

Commit

Permalink
fallback to ID id URL is not set
Browse files Browse the repository at this point in the history
  • Loading branch information
pfefferle committed Jan 12, 2024
1 parent 7e35c1e commit d684261
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-mention.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit d684261

Please sign in to comment.