]> git.wh0rd.org - tt-rss.git/blobdiff - include/functions.php
add a hack to prevent loading of stuff for hidden content in unexpanded combined...
[tt-rss.git] / include / functions.php
index a055d1edf2f945fc95c24f9486cd5f57920a2926..66054c23b0346d39bde062f5e7f63dbbb9cdbbd2 100644 (file)
                                }
 
                                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');
 
                                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)) {