diff options
author | Andrew Dolgov <[email protected]> | 2005-09-09 08:58:21 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2005-09-09 08:58:21 +0100 |
commit | 8add756ac1a575f249e0b0f077f867570c282748 (patch) | |
tree | 428338b377c735e5da89311cd00f713ef48be542 /functions.php | |
parent | 8143ae1f2b61c6ad7255b090b47447d3680e22bf (diff) |
hardcode minimum 30 minute rss refetch interval
Diffstat (limited to 'functions.php')
-rw-r--r-- | functions.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/functions.php b/functions.php index 82ff0cbd8..378e123f2 100644 --- a/functions.php +++ b/functions.php @@ -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"]); } } @@ -157,6 +157,11 @@ // 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"]; |