summaryrefslogtreecommitdiff
path: root/functions.php
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2011-04-27 16:03:24 +0400
committerAndrew Dolgov <[email protected]>2011-04-27 16:03:24 +0400
commit73f168fa45180545fb3d87630c5c8e6f2eac0500 (patch)
treee1ab820f078eee9f19c19620754670f1a494e041 /functions.php
parentcdaa144301762d100bfc0e6f946a584012f3ab47 (diff)
update_rss_feed: properly handle update_insignificant
Diffstat (limited to 'functions.php')
-rw-r--r--functions.php17
1 files changed, 6 insertions, 11 deletions
diff --git a/functions.php b/functions.php
index fc50bd46e..d3f64b58f 100644
--- a/functions.php
+++ b/functions.php
@@ -1291,26 +1291,21 @@
$post_needs_update = false;
$update_insignificant = false;
- if ($content_hash != $orig_content_hash) {
-// print "<!-- [$entry_title] $content_hash vs $orig_content_hash -->";
+ if ($orig_num_comments != $num_comments) {
$post_needs_update = true;
+ $update_insignificant = true;
}
- if (db_escape_string($orig_title) != $entry_title) {
+ if ($content_hash != $orig_content_hash) {
$post_needs_update = true;
+ $update_insignificant = false;
}
- if ($orig_num_comments != $num_comments) {
+ if (db_escape_string($orig_title) != $entry_title) {
$post_needs_update = true;
- $update_insignificant = true;
+ $update_insignificant = false;
}
-// this doesn't seem to be very reliable
-//
-// if ($orig_timestamp != $entry_timestamp && !$orig_no_orig_date) {
-// $post_needs_update = true;
-// }
-
// if post needs update, update it and mark all user entries
// linking to this post as updated
if ($post_needs_update) {