]> git.mxchange.org Git - friendica.git/commitdiff
And another plaintext correction :)
authorMichael <heluecht@pirati.ca>
Sun, 24 Sep 2017 13:47:31 +0000 (13:47 +0000)
committerMichael <heluecht@pirati.ca>
Sun, 24 Sep 2017 13:47:31 +0000 (13:47 +0000)
include/plaintext.php

index 9e583dbe50914fc516a9c356b4e4775c9d1a071b..53015c961f3487230858dbeaac8df2711675902d 100644 (file)
@@ -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);