1
1
Fork 0

Merge pull request #3729 from annando/plaintext-again

And another plaintext correction :)
This commit is contained in:
Tobias Diekershoff 2017-09-24 16:00:39 +02:00 committed by GitHub
commit bcdccac39c

View file

@ -75,7 +75,6 @@ function get_old_attachment_data($body) {
} }
} }
return $post; return $post;
} }
@ -277,12 +276,12 @@ function get_attached_data($body, $item = array()) {
if (count($links) > 1) { if (count($links) > 1) {
// The post will be the type "text", which means a blog post // The post will be the type "text", which means a blog post
unset($post["type"]); unset($post["type"]);
$post["url"] = $plink;
} }
if (!isset($post["type"])) { if (!isset($post["type"])) {
$post["type"] = "text"; $post["type"] = "text";
$post["text"] = trim($body); $post["text"] = trim($body);
$post["url"] = $plink;
} }
} elseif (isset($post["url"]) && ($post["type"] == "video")) { } elseif (isset($post["url"]) && ($post["type"] == "video")) {
$data = ParseUrl::getSiteinfoCached($post["url"], true); $data = ParseUrl::getSiteinfoCached($post["url"], true);