Bugfix DFRN and bookmark detection

This commit is contained in:
Michael Vogel 2016-04-24 17:00:19 +02:00
parent 1756ecaba3
commit 93347d3279
4 changed files with 21 additions and 19 deletions

View file

@ -38,6 +38,11 @@ function bb_attachment($Text, $simplehtml = false, $tryoembed = true) {
if (!$data)
return $Text;
if (isset($data["title"])) {
$data["title"] = strip_tags($data["title"]);
$data["title"] = str_replace(array("http://", "https://"), "", $data["title"]);
}
if (((strpos($data["text"], "[img=") !== false) OR (strpos($data["text"], "[img]") !== false)) AND ($data["image"] != "")) {
$data["preview"] = $data["image"];
$data["image"] = "";