]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Minor fix to allow update_facebook script to bootstrap correctly
authorCiaran Gultnieks <ciaran@thurlow.(none)>
Mon, 2 Feb 2009 16:36:47 +0000 (16:36 +0000)
committerCiaran Gultnieks <ciaran@thurlow.(none)>
Mon, 2 Feb 2009 16:36:47 +0000 (16:36 +0000)
scripts/update_facebook.php

index 485b2a342d90121ca434fdd7a6199edb8969a1db..141bcfe0caf2e2392ed77567f37ef11edf45277c 100755 (executable)
@@ -86,9 +86,13 @@ if ($cnt > 0) {
        ": Found $cnt new notices to send to Facebook since last run at " . 
         date('Y-m-d H:i:s', $since) . "\n";
 
-    updateLastUpdated($current_time);
 }
 
+#Save the last updated time. It needs to do this even if there were no
+#changes made, otherwise it will never create it and thus never send
+#any updates at all.
+updateLastUpdated($current_time);
+
 exit(0);