mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-17 10:21:29 +00:00
do not display image attachments inline when STRIP_IMAGES is enabled
This commit is contained in:
@@ -4814,6 +4814,7 @@
|
|||||||
|
|
||||||
print "<div class=\"postEnclosures\">";
|
print "<div class=\"postEnclosures\">";
|
||||||
|
|
||||||
|
if (!get_pref($link, "STRIP_IMAGES")) {
|
||||||
if ($always_display_enclosures || !preg_match("/<img/i", $article_content)) {
|
if ($always_display_enclosures || !preg_match("/<img/i", $article_content)) {
|
||||||
foreach ($entries as $entry) {
|
foreach ($entries as $entry) {
|
||||||
if (preg_match("/image/", $entry["type"])) {
|
if (preg_match("/image/", $entry["type"])) {
|
||||||
@@ -4823,6 +4824,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
print "<div class=\"postEnclosures\">";
|
print "<div class=\"postEnclosures\">";
|
||||||
|
|
||||||
@@ -5392,6 +5394,7 @@
|
|||||||
|
|
||||||
$always_display_enclosures = db_fetch_result($tmp_result, 0, "always_display_enclosures");
|
$always_display_enclosures = db_fetch_result($tmp_result, 0, "always_display_enclosures");
|
||||||
|
|
||||||
|
if (!get_pref($link, "STRIP_IMAGES")) {
|
||||||
if ($always_display_enclosures || !preg_match("/img/i", $article_content)) {
|
if ($always_display_enclosures || !preg_match("/img/i", $article_content)) {
|
||||||
foreach ($entries as $entry) {
|
foreach ($entries as $entry) {
|
||||||
if (preg_match("/image/", $entry["type"])) {
|
if (preg_match("/image/", $entry["type"])) {
|
||||||
@@ -5401,6 +5404,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
print "<div class=\"cdmEnclosures\">";
|
print "<div class=\"cdmEnclosures\">";
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user