projects
/
friendica.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4176acc
)
(hopefully) fix preview issue with tags on Mastodon
author
Michael
<heluecht@pirati.ca>
Sun, 27 Oct 2019 17:41:47 +0000
(17:41 +0000)
committer
Michael
<heluecht@pirati.ca>
Sun, 27 Oct 2019 17:41:47 +0000
(17:41 +0000)
src/Content/Text/BBCode.php
patch
|
blob
|
history
diff --git
a/src/Content/Text/BBCode.php
b/src/Content/Text/BBCode.php
index 8a029fe5344441dd4b6646ef1c81fb9993f10777..fc5c772d5b47bfaac829c37b6325bdad843c5a80 100644
(file)
--- a/
src/Content/Text/BBCode.php
+++ b/
src/Content/Text/BBCode.php
@@
-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);