From 2b3bc54049fc540fa1886279de25406330c27905 Mon Sep 17 00:00:00 2001 From: Michael Date: Sun, 24 Sep 2017 13:47:31 +0000 Subject: [PATCH] And another plaintext correction :) --- include/plaintext.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/plaintext.php b/include/plaintext.php index 9e583dbe50..53015c961f 100644 --- a/include/plaintext.php +++ b/include/plaintext.php @@ -75,7 +75,6 @@ function get_old_attachment_data($body) { } } - return $post; } @@ -277,12 +276,12 @@ function get_attached_data($body, $item = array()) { if (count($links) > 1) { // The post will be the type "text", which means a blog post unset($post["type"]); + $post["url"] = $plink; } if (!isset($post["type"])) { $post["type"] = "text"; $post["text"] = trim($body); - $post["url"] = $plink; } } elseif (isset($post["url"]) && ($post["type"] == "video")) { $data = ParseUrl::getSiteinfoCached($post["url"], true); -- 2.39.5