$facebook = get_facebook();
$fbuid = $facebook->require_login();
-
+
// Check to see whether there's already a Facebook link for this user
$flink = Foreign_link::getByForeignID($fbuid, FACEBOOK_SERVICE);
if ($flink) {
- if ($_POST['submit'] == 'Send') {
+ if ($_POST['submit'] == 'Send') {
$this->saveNewNotice($flink);
return;
}
$notice = $user->getCurrentNotice();
update_profile_box($facebook, $fbuid, $user, $notice);
- $this->showHeader($msg);
+ $this->showHeader($msg);
$this->showNoticeForm($user);
$this->showNav('Home');
-
+
echo $this->showNotices($user);
$this->showFooter();
common_end_xml();
}
-
+
function saveNewNotice($flink)
{
-
+
$user = $flink->getUser();
- $content = $_POST['status_textarea'];
+ $content = $_POST['status_textarea'];
if (!$content) {
$this->showHome($flink, _('No content!'));
common_broadcast_notice($notice);
$this->showHome($flink, 'Success!');
}
-
+
}