]> git.mxchange.org Git - friendica.git/commitdiff
Merge pull request #6568 from annando/ap-mentions
authorHypolite Petovan <hypolite@mrpetovan.com>
Thu, 31 Jan 2019 00:05:00 +0000 (19:05 -0500)
committerGitHub <noreply@github.com>
Thu, 31 Jan 2019 00:05:00 +0000 (19:05 -0500)
Links of mentioned contacts hadn't looked great on Mastodon

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",