diff options
author | Zach Copley <zach@controlyourself.ca> | 2009-01-04 23:56:03 -0500 |
---|---|---|
committer | Zach Copley <zach@controlyourself.ca> | 2009-01-04 23:56:03 -0500 |
commit | 53cabc0171f6628f428fbc02a6ae48dcab5e4c6d (patch) | |
tree | 663426118823b617076a16c2790ff453add1ebf3 /scripts/update_facebook.php | |
parent | e0fbf02bbf516db10070bddaabbbaea31d336cda (diff) |
trac750 added some output to the facebook_update.php script
darcs-hash:20090105045603-7b5ce-2cef1b92d9c91b0db70269d94f42ae06076229b2.gz
Diffstat (limited to 'scripts/update_facebook.php')
-rwxr-xr-x | scripts/update_facebook.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/update_facebook.php b/scripts/update_facebook.php index 02e47cefe..15c0e49f8 100755 --- a/scripts/update_facebook.php +++ b/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); |