From: Michael Date: Thu, 20 Apr 2017 05:44:31 +0000 (+0000) Subject: Merge remote-tracking branch 'upstream/develop' into 1704-mastodon X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=3592f909105d09ac7d4d7bfebe47f4b3921763d6;p=friendica.git Merge remote-tracking branch 'upstream/develop' into 1704-mastodon Conflicts: include/bbcode.php --- 3592f909105d09ac7d4d7bfebe47f4b3921763d6 diff --cc include/bbcode.php index 5a066596e6,2a70f95e59..2715334e46 --- a/include/bbcode.php +++ b/include/bbcode.php @@@ -57,9 -60,10 +60,10 @@@ function bb_attachment($Text, $simpleht // If the link description is similar to the text above then don't add the link description if (($data["title"] != "") AND ((strpos($test1,$test2) !== false) OR - (similar_text($test1,$test2) / strlen($data["title"])) > 0.9)) + (similar_text($test1,$test2) / strlen($data["title"])) > 0.9)) { $title2 = $data["url"]; + } - $text = sprintf('%s
', + $text = sprintf('%s
', $data["url"], $data["title"], $title2); } elseif (($simplehtml != 4) AND ($simplehtml != 0)) { $text = sprintf('%s
', $data["url"], $data["title"]); @@@ -67,29 -71,33 +71,33 @@@ $text = sprintf('', $data["type"]); $bookmark = array(sprintf('[bookmark=%s]%s[/bookmark]', $data["url"], $data["title"]), $data["url"], $data["title"]); - if ($tryoembed) + if ($tryoembed) { $oembed = tryoembed($bookmark); - else + } else { $oembed = $bookmark[0]; + } - if (strstr(strtolower($oembed), "