]> git.wh0rd.org Git - tt-rss.git/commitdiff
hardcode minimum 30 minute rss refetch interval
authorAndrew Dolgov <fox@bah.spb.su>
Fri, 9 Sep 2005 07:58:21 +0000 (08:58 +0100)
committerAndrew Dolgov <fox@bah.spb.su>
Fri, 9 Sep 2005 07:58:21 +0000 (08:58 +0100)
backend.php
functions.php
viewfeed.js

index 637647cbd2193255fbed6e695a06ac47f88e6adb..aaf4e98500726ec87d7b98608406e21cc25f672e 100644 (file)
                                FROM ttrss_entries WHERE marked = true AND unread = true");
                        $num_starred = db_fetch_result($result, 0, "num_starred");
 
-                       printFeedEntry(-1, "odd", "Starred articles", $num_starred, 
+                       $class = "odd";
+
+                       if ($num_starred > 0) $class .= "Unread";
+
+                       printFeedEntry(-1, $class, "Starred articles", $num_starred, 
                                "images/mark_set.png");
 
                        if (ENABLE_LABELS) {
index 82ff0cbd885e0b0887b0e2340d00b2843cada33b..378e123f25da94c8913a010d4b4dc3dcab7629d4 100644 (file)
@@ -20,7 +20,7 @@
                $result = db_query($link, "SELECT feed_url,id,last_updated FROM ttrss_feeds");
 
                while ($line = db_fetch_assoc($result)) {
-                       if ($line["last_updated"] && time() - strtotime($line["last_updated"]) > 1800) {
+                       if (!$line["last_updated"] || time() - strtotime($line["last_updated"]) > 1800) {
                                update_rss_feed($link, $line["feed_url"], $line["id"]);
                        }
                }
 
 //                             if (!$entry_content) continue;
 
+                               // WTF
+                               if (is_array($entry_content)) {
+                                       $entry_content = $entry_content["encoded"];
+                               }
+
                                $content_hash = "SHA1:" . sha1(strip_tags($entry_content));
 
                                $entry_comments = $item["comments"];
index 9d891ec66dedefb253db83870230899577ba2f1a..4e9c7da50a70669f4820955b5640b39fb70221f3 100644 (file)
@@ -114,12 +114,17 @@ function toggleMark(id, toggle) {
        }
 
        var vfeedctr = f_document.getElementById("FEEDCTR--1");
+       var vfeedr = f_document.getElementById("FEEDR--1");
 
        if (vfeedu && vfeedctr) {
                if ((+vfeedu.innerHTML) > 0) {
                        vfeedctr.className = "odd";
+                       if (!vfeedr.className.match("Unread")) {
+                               vfeedr.className = vfeedr.className + "Unread";
+                       }
                } else {
                        vfeedctr.className = "invisible";
+                       vfeedr.className = vfeedr.className.replace("Unread", "");
                }
        }