1
0
mirror of https://git.tt-rss.org/git/tt-rss.git synced 2026-01-04 04:29:20 +00:00

update_rss_feed: properly handle update_insignificant

This commit is contained in:
Andrew Dolgov
2011-04-27 16:03:24 +04:00
parent cdaa144301
commit 73f168fa45

View File

@@ -1291,25 +1291,20 @@
$post_needs_update = false;
$update_insignificant = false;
if ($content_hash != $orig_content_hash) {
// print "<!-- [$entry_title] $content_hash vs $orig_content_hash -->";
$post_needs_update = true;
}
if (db_escape_string($orig_title) != $entry_title) {
$post_needs_update = true;
}
if ($orig_num_comments != $num_comments) {
$post_needs_update = true;
$update_insignificant = true;
}
// this doesn't seem to be very reliable
//
// if ($orig_timestamp != $entry_timestamp && !$orig_no_orig_date) {
// $post_needs_update = true;
// }
if ($content_hash != $orig_content_hash) {
$post_needs_update = true;
$update_insignificant = false;
}
if (db_escape_string($orig_title) != $entry_title) {
$post_needs_update = true;
$update_insignificant = false;
}
// if post needs update, update it and mark all user entries
// linking to this post as updated