X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fbbcode.php;h=a14e3ee8e9b88f9377b6d9ed02adb73b1e18e59e;hb=dbb5df7f7d65e4f94add3f0684d9bff40e5f8167;hp=d891f23dae4c07f5c4c8091e0a2a5e898130d544;hpb=86cae070f2a048e553c545caec54be72c1c14da5;p=friendica.git diff --git a/include/bbcode.php b/include/bbcode.php index d891f23dae..a14e3ee8e9 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -1,6 +1,7 @@ 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) { @@ -82,22 +77,26 @@ function bb_attachment($Text, $simplehtml = false, $tryoembed = true) { if (strstr(strtolower($oembed), "