mirror of
https://github.com/friendica/friendica
synced 2024-11-10 08:22:57 +00:00
(hopefully) fix preview issue with tags on Mastodon
This commit is contained in:
parent
4176acc710
commit
60eb6603bf
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue