hardcode minimum 30 minute rss refetch interval
This commit is contained in:
parent
8143ae1f2b
commit
8add756ac1
|
@ -118,7 +118,11 @@
|
||||||
FROM ttrss_entries WHERE marked = true AND unread = true");
|
FROM ttrss_entries WHERE marked = true AND unread = true");
|
||||||
$num_starred = db_fetch_result($result, 0, "num_starred");
|
$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");
|
"images/mark_set.png");
|
||||||
|
|
||||||
if (ENABLE_LABELS) {
|
if (ENABLE_LABELS) {
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
$result = db_query($link, "SELECT feed_url,id,last_updated FROM ttrss_feeds");
|
$result = db_query($link, "SELECT feed_url,id,last_updated FROM ttrss_feeds");
|
||||||
|
|
||||||
while ($line = db_fetch_assoc($result)) {
|
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"]);
|
update_rss_feed($link, $line["feed_url"], $line["id"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -157,6 +157,11 @@
|
||||||
|
|
||||||
// if (!$entry_content) continue;
|
// if (!$entry_content) continue;
|
||||||
|
|
||||||
|
// WTF
|
||||||
|
if (is_array($entry_content)) {
|
||||||
|
$entry_content = $entry_content["encoded"];
|
||||||
|
}
|
||||||
|
|
||||||
$content_hash = "SHA1:" . sha1(strip_tags($entry_content));
|
$content_hash = "SHA1:" . sha1(strip_tags($entry_content));
|
||||||
|
|
||||||
$entry_comments = $item["comments"];
|
$entry_comments = $item["comments"];
|
||||||
|
|
|
@ -114,12 +114,17 @@ function toggleMark(id, toggle) {
|
||||||
}
|
}
|
||||||
|
|
||||||
var vfeedctr = f_document.getElementById("FEEDCTR--1");
|
var vfeedctr = f_document.getElementById("FEEDCTR--1");
|
||||||
|
var vfeedr = f_document.getElementById("FEEDR--1");
|
||||||
|
|
||||||
if (vfeedu && vfeedctr) {
|
if (vfeedu && vfeedctr) {
|
||||||
if ((+vfeedu.innerHTML) > 0) {
|
if ((+vfeedu.innerHTML) > 0) {
|
||||||
vfeedctr.className = "odd";
|
vfeedctr.className = "odd";
|
||||||
|
if (!vfeedr.className.match("Unread")) {
|
||||||
|
vfeedr.className = vfeedr.className + "Unread";
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
vfeedctr.className = "invisible";
|
vfeedctr.className = "invisible";
|
||||||
|
vfeedr.className = vfeedr.className.replace("Unread", "");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue