]> git.mxchange.org Git - friendica.git/commitdiff
(hopefully) fix preview issue with tags on Mastodon
authorMichael <heluecht@pirati.ca>
Sun, 27 Oct 2019 17:41:47 +0000 (17:41 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 27 Oct 2019 17:41:47 +0000 (17:41 +0000)
src/Content/Text/BBCode.php

index 8a029fe5344441dd4b6646ef1c81fb9993f10777..fc5c772d5b47bfaac829c37b6325bdad843c5a80 100644 (file)
@@ -1746,9 +1746,9 @@ class BBCode extends BaseObject
                 * - [url=<anything>]#<term>[/url]
                 */
                $text = preg_replace_callback("/(?:#\[url\=.*?\]|\[url\=.*?\]#)(.*?)\[\/url\]/ism", function($matches) {
-                       return '#<a href="'
+                               return '#<a href="'
                                . System::baseUrl()     . '/search?tag=' . rawurlencode($matches[1])
-                               . '" class="tag" title="' . XML::escape($matches[1]) . '">'
+                               . '" class="tag" rel="tag" title="' . XML::escape($matches[1]) . '">'
                                . XML::escape($matches[1])
                                . '</a>';
                }, $text);