]> git.mxchange.org Git - friendica.git/commitdiff
Show the preview picture even if the posting contains the huge image
authorMichael <heluecht@pirati.ca>
Sat, 25 Nov 2017 16:00:51 +0000 (16:00 +0000)
committerMichael <heluecht@pirati.ca>
Sat, 25 Nov 2017 16:00:51 +0000 (16:00 +0000)
include/bbcode.php

index 83ea3fcfa61d9ef9500c87c4de90cf167efe305e..196c3ca3c1578e76bf3954ecf542aa53b6ec24b5 100644 (file)
@@ -52,7 +52,10 @@ function bb_attachment($Text, $simplehtml = false, $tryoembed = true) {
                $data["title"] = str_replace(array("http://", "https://"), "", $data["title"]);
        }
 
-       if (((strpos($data["text"], "[img=") !== false) || (strpos($data["text"], "[img]") !== false)) && ($data["image"] != "")) {
+       if (((strpos($data["text"], "[img=") !== false)
+               || (strpos($data["text"], "[img]") !== false)
+               || Config::get('system', 'always_show_preview'))
+               && ($data["image"] != "")) {
                $data["preview"] = $data["image"];
                $data["image"] = "";
        }