mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-20 19:41:29 +00:00
remove inlined images in bwlimit mode
This commit is contained in:
@@ -2659,7 +2659,7 @@
|
|||||||
|
|
||||||
if ($entry->nodeName == 'img') {
|
if ($entry->nodeName == 'img') {
|
||||||
if (($owner && get_pref($link, "STRIP_IMAGES", $owner)) ||
|
if (($owner && get_pref($link, "STRIP_IMAGES", $owner)) ||
|
||||||
$force_remove_images) {
|
$force_remove_images || $_SESSION["bw_limit"]) {
|
||||||
|
|
||||||
$p = $doc->createElement('p');
|
$p = $doc->createElement('p');
|
||||||
|
|
||||||
@@ -3663,7 +3663,7 @@
|
|||||||
array_push($entries, $entry);
|
array_push($entries, $entry);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($_SESSION['uid'] && !get_pref($link, "STRIP_IMAGES")) {
|
if ($_SESSION['uid'] && !get_pref($link, "STRIP_IMAGES") && !$_SESSION["bw_limit"]) {
|
||||||
if ($always_display_enclosures ||
|
if ($always_display_enclosures ||
|
||||||
!preg_match("/<img/i", $article_content)) {
|
!preg_match("/<img/i", $article_content)) {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user