X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=include%2Fbbcode.php;h=609ca922bcefc9b033e550024cb2a91319d2ecac;hb=b92fc24ff06681f445edff0d45f8f81a7e25ebe6;hp=d891f23dae4c07f5c4c8091e0a2a5e898130d544;hpb=1f58bcc114928a5a3cd97bd0de34a5aa7d585931;p=friendica.git diff --git a/include/bbcode.php b/include/bbcode.php index d891f23dae..609ca922bc 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -1,7 +1,11 @@ 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 +79,26 @@ function bb_attachment($Text, $simplehtml = false, $tryoembed = true) { if (strstr(strtolower($oembed), "