1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2025-12-15 11:05:57 +00:00

add a hack to prevent loading of stuff for hidden content in unexpanded combined mode (refs #602)

This commit is contained in:
Andrew Dolgov
2013-03-20 13:17:48 +04:00
parent 81153e6b8b
commit f0540b598a
4 changed files with 85 additions and 14 deletions

View File

@@ -2609,7 +2609,8 @@
}
if ($entry->nodeName == 'img') {
if (get_pref($link, "STRIP_IMAGES", $owner) || $force_remove_images) {
if (($owner && get_pref($link, "STRIP_IMAGES", $owner)) ||
$force_remove_images) {
$p = $doc->createElement('p');
@@ -3633,7 +3634,7 @@
array_push($entries, $entry);
}
if (!get_pref($link, "STRIP_IMAGES")) {
if ($_SESSION['uid'] && !get_pref($link, "STRIP_IMAGES")) {
if ($always_display_enclosures ||
!preg_match("/<img/i", $article_content)) {