]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove display of hidden feed entries from category view and labels
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 16 Aug 2006 09:05:24 +0000 (10:05 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 16 Aug 2006 09:05:24 +0000 (10:05 +0100)
functions.php

index 9bb9e67e57cc5d9093eac71704696e9ce1bddd96..81da7256cf31284a3e6f24ba954b66c5e13d733b 100644 (file)
                                FROM ttrss_user_entries WHERE feed_id = ttrss_feeds.id 
                                        AND unread = true)) AS unread FROM ttrss_feeds 
                        WHERE 
-                               owner_uid = ".$_SESSION["uid"]." GROUP BY cat_id");
+                               hidden = false AND owner_uid = ".$_SESSION["uid"]." GROUP BY cat_id");
 
                while ($line = db_fetch_assoc($result)) {
                        $line["cat_id"] = sprintf("%d", $line["cat_id"]);
                }
 
                $result = db_query($link, "SELECT id FROM ttrss_feeds WHERE $cat_query 
+                               AND hidden = false
                                AND owner_uid = " . $_SESSION["uid"]);
 
                $cat_feeds = array();
                                FROM ttrss_user_entries,ttrss_feeds,ttrss_entries WHERE
                                ttrss_user_entries.feed_id = ttrss_feeds.id AND
                                ttrss_user_entries.ref_id = ttrss_entries.id AND 
+                               ttrss_feeds.hidden = false AND
                                unread = true AND ($match_part) AND ttrss_user_entries.owner_uid = " . $_SESSION["uid"]);
                                
                } else {
                }
                
                $unread = db_fetch_result($result, 0, "unread");
+
                return $unread;
        }
 
 
                        $tmp_result = db_query($link, "SELECT count(ttrss_entries.id) as count FROM ttrss_user_entries,ttrss_entries,ttrss_feeds
                                WHERE (" . $line["sql_exp"] . ") AND unread = true AND 
+                               ttrss_feeds.hidden = false AND
                                ttrss_user_entries.feed_id = ttrss_feeds.id AND
                                ttrss_user_entries.ref_id = ttrss_entries.id AND 
                                ttrss_user_entries.owner_uid = ".$_SESSION["uid"]);
                                        FROM
                                                ttrss_entries,ttrss_user_entries,ttrss_feeds
                                        WHERE
+                                       ttrss_feeds.hidden = false AND
                                        ttrss_user_entries.feed_id = ttrss_feeds.id AND
                                        ttrss_user_entries.ref_id = ttrss_entries.id AND
                                        ttrss_user_entries.owner_uid = '".$_SESSION["uid"]."' AND