trac750 Add notice input box to FB app and ability to post notices

This commit is contained in:
Zach Copley
2009-01-19 07:24:12 +00:00
parent cd6b9d6c46
commit 739baf0396
7 changed files with 205 additions and 69 deletions

View File

@@ -67,9 +67,13 @@ while($notice->fetch()) {
// If it's not a reply, or if the user WANTS to send replies...
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);
update_profile_box($facebook, $fbuid, $user, $notice);
$cnt++;
// Avoid a Loop
if ($notice->source != 'Facebook') {
update_status($fbuid, $content);
update_profile_box($facebook, $fbuid, $user, $notice);
$cnt++;
}
}
}
}