From ba184f903888c362e99ddfb2defdcb4490a1f8a6 Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 25 Nov 2017 16:00:51 +0000 Subject: [PATCH] Show the preview picture even if the posting contains the huge image --- include/bbcode.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/include/bbcode.php b/include/bbcode.php index 83ea3fcfa6..196c3ca3c1 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -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"] = ""; }