X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fplaintext.php;h=39dcc9ecdbd7d888cdc6c601bde0acc3570a4dd9;hb=e44da4a49825ed575e0168e8d2f5644c14bbc524;hp=53015c961f3487230858dbeaac8df2711675902d;hpb=bcdccac39c47ef2e1c30563148d483e06fc61743;p=friendica.git diff --git a/include/plaintext.php b/include/plaintext.php index 53015c961f..39dcc9ecdb 100644 --- a/include/plaintext.php +++ b/include/plaintext.php @@ -1,16 +1,15 @@ = 500) && ($picturedata[0] >= $picturedata[1])) $post["image"] = $matches[1]; @@ -222,7 +221,7 @@ function get_attached_data($body, $item = array()) { $post["preview"] = $pictures[0][2]; $post["text"] = str_replace($pictures[0][0], "", $body); } else { - $imgdata = get_photo_info($pictures[0][1]); + $imgdata = Image::getInfoFromURL($pictures[0][1]); if (substr($imgdata["mime"], 0, 6) == "image/") { $post["type"] = "photo"; $post["image"] = $pictures[0][1]; @@ -449,7 +448,7 @@ function plaintext(App $a, $b, $limit = 0, $includedlinks = false, $htmlmode = 2 // Which purpose has this line? It is now uncommented, but left as a reminder //} elseif (strpos($b["body"], "[share") !== false) { // $post["url"] = $b["plink"]; - } elseif (get_pconfig($b["uid"], "system", "no_intelligent_shortening")) { + } elseif (PConfig::get($b["uid"], "system", "no_intelligent_shortening")) { $post["url"] = $b["plink"]; } $msg = shortenmsg($msg, $limit);