]> git.mxchange.org Git - friendica.git/commitdiff
Links of mentioned contacts hadn't looked great on Mastodon
authorMichael <heluecht@pirati.ca>
Wed, 30 Jan 2019 21:57:26 +0000 (21:57 +0000)
committerMichael <heluecht@pirati.ca>
Wed, 30 Jan 2019 21:57:26 +0000 (21:57 +0000)
src/Content/Text/BBCode.php

index 794410a690619144a8913034ed4f2e2f0e591e10..a8b5ec2025546e7ffa0e694597d2f38524ccd8b1 100644 (file)
@@ -1293,7 +1293,7 @@ class BBCode extends BaseObject
                                $text);
                } elseif ($simple_html == 7) {
                        $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);
                } elseif (!$simple_html) {
                        $text = preg_replace("/([@!])\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism",