[UTIL][Formatting] Mention title is not always defined
This commit is contained in:
parent
fa9df9962e
commit
eff9318c1d
|
@ -471,7 +471,7 @@ abstract class Formatting
|
|||
}
|
||||
|
||||
$output = HTML::html(['span' => ['attrs' => ['class' => 'h-card'],
|
||||
'@' . HTML::html(['a' => ['attrs' => $attrs, $mention['title']]], options: ['indent' => false]),
|
||||
'@' . HTML::html(['a' => ['attrs' => $attrs, $mention['title'] ?? $mention['text']]], options: ['indent' => false]),
|
||||
]], options: ['indent' => false, 'raw' => true]);
|
||||
|
||||
Event::handle('EndLinkifyMention', [$mention, &$output]);
|
||||
|
|
Loading…
Reference in New Issue
Block a user