summaryrefslogtreecommitdiff
path: root/_darcs/pristine
diff options
context:
space:
mode:
authorZach Copley <zach@controlyourself.ca>2009-01-04 23:56:03 -0500
committerZach Copley <zach@controlyourself.ca>2009-01-04 23:56:03 -0500
commit53cabc0171f6628f428fbc02a6ae48dcab5e4c6d (patch)
tree663426118823b617076a16c2790ff453add1ebf3 /_darcs/pristine
parente0fbf02bbf516db10070bddaabbbaea31d336cda (diff)
trac750 added some output to the facebook_update.php script
darcs-hash:20090105045603-7b5ce-2cef1b92d9c91b0db70269d94f42ae06076229b2.gz
Diffstat (limited to '_darcs/pristine')
-rw-r--r--_darcs/pristine/scripts/update_facebook.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/_darcs/pristine/scripts/update_facebook.php b/_darcs/pristine/scripts/update_facebook.php
index 02e47cefe..15c0e49f8 100644
--- a/_darcs/pristine/scripts/update_facebook.php
+++ b/_darcs/pristine/scripts/update_facebook.php
@@ -48,6 +48,10 @@ $current_time = time();
$notice = get_facebook_notices(get_last_updated());
+print date('r', $current_time) . " Looking for notices to send to Facebook...\n";
+
+$cnt = 0;
+
while($notice->fetch()) {
$flink = Foreign_link::getByUserID($notice->profile_id, 2);
@@ -60,12 +64,15 @@ while($notice->fetch()) {
if (!preg_match('/@[a-zA-Z0-9_]{1,15}\b/u', $content) ||
(($flink->noticesync & FOREIGN_NOTICE_SEND_REPLY) == FOREIGN_NOTICE_SEND_REPLY)) {
update_status($fbuid, $content);
+ $cnt++;
}
}
}
update_last_updated($current_time);
+print "Sent $cnt notices to Facebook.\n";
+
exit(0);