X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fplaintext.php;h=83027286798d574c08a9c64acf99fb8d1b08c803;hb=df8b522f6b96bc3a631e608ee430555590e91f0c;hp=d98d736550469225f226b6fbc7341065b9b43fef;hpb=250f978872daeb3cfe02b2ac63ffd2d893a53aa0;p=friendica.git diff --git a/include/plaintext.php b/include/plaintext.php index d98d736550..8302728679 100644 --- a/include/plaintext.php +++ b/include/plaintext.php @@ -63,6 +63,10 @@ function get_old_attachment_data($body) { $post["url"] = $matches[1]; $post["title"] = $matches[2]; } + if (($post["url"] == "") AND (in_array($post["type"], array("link", "video"))) + AND preg_match("/\[url\=([$URLSearchString]*)\](.*?)\[\/url\]/ism", $attacheddata, $matches)) { + $post["url"] = $matches[1]; + } // Search for description if (preg_match("/\[quote\](.*?)\[\/quote\]/ism", $attacheddata, $matches))