X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fbbcode.php;h=ee740e18caf95bb23f43cf4eb3e6ed80f73f9901;hb=3b4f72da939fa9f5155311799044414220d5d039;hp=2a70f95e59ee4fe159d3119b25558d92c8350507;hpb=9423db628fd11c7c7290802d1311398c630c702e;p=friendica.git diff --git a/include/bbcode.php b/include/bbcode.php index 2a70f95e59..ee740e18ca 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -1,5 +1,8 @@ 0.9)) { - $title2 = $data["url"]; - } - $text = sprintf('%s
', - $data["url"], $data["title"], $title2); - } elseif (($simplehtml != 4) AND ($simplehtml != 0)) { + $text = style_url_for_mastodon($data["url"]); + } elseif (($simplehtml != 4) && ($simplehtml != 0)) { $text = sprintf('%s
', $data["url"], $data["title"]); } else { - $text = sprintf('', $data["type"]); + if ($simplehtml != 4) { + $text = sprintf('', $data["type"]); + } else { + $span_end = ''; + } $bookmark = array(sprintf('[bookmark=%s]%s[/bookmark]', $data["url"], $data["title"]), $data["url"], $data["title"]); if ($tryoembed) { @@ -80,24 +77,28 @@ function bb_attachment($Text, $simplehtml = false, $tryoembed = true) { if (strstr(strtolower($oembed), "