mirror of
https://github.com/friendica/friendica
synced 2025-04-24 12:30:10 +00:00
Bugfix DFRN and bookmark detection
This commit is contained in:
parent
cea445b6f3
commit
e7c4d0bc50
4 changed files with 21 additions and 19 deletions
|
@ -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"] = "";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue