Show the preview picture even if the posting contains the huge image
This commit is contained in:
parent
5778747ad0
commit
ba184f9038
1 changed files with 4 additions and 1 deletions
|
@ -52,7 +52,10 @@ function bb_attachment($Text, $simplehtml = false, $tryoembed = true) {
|
||||||
$data["title"] = str_replace(array("http://", "https://"), "", $data["title"]);
|
$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["preview"] = $data["image"];
|
||||||
$data["image"] = "";
|
$data["image"] = "";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue