mirror of
https://github.com/friendica/friendica
synced 2024-11-19 11:03:40 +00:00
Merge pull request #6568 from annando/ap-mentions
Links of mentioned contacts hadn't looked great on Mastodon
This commit is contained in:
commit
811bafa246
1 changed files with 1 additions and 1 deletions
|
@ -1293,7 +1293,7 @@ class BBCode extends BaseObject
|
||||||
$text);
|
$text);
|
||||||
} elseif ($simple_html == 7) {
|
} elseif ($simple_html == 7) {
|
||||||
$text = preg_replace("/([@!])\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",
|
$text = preg_replace("/([@!])\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",
|
||||||
'$1<span class="vcard"><a href="$2" class="url" title="$3"><span class="fn nickname mention">$3</span></a></span>',
|
'$1<span class="vcard"><a href="$2" class="url u-url mention" title="$3"><span class="fn nickname mention">$3</span></a></span>',
|
||||||
$text);
|
$text);
|
||||||
} elseif (!$simple_html) {
|
} elseif (!$simple_html) {
|
||||||
$text = preg_replace("/([@!])\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",
|
$text = preg_replace("/([@!])\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",
|
||||||
|
|
Loading…
Reference in a new issue