]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/facebookhome.php
Merge branch 'master' of /var/www/trunk
[quix0rs-gnu-social.git] / actions / facebookhome.php
index 3696df90ac534b962e803de50e042be78e6fbfc3..ae29ee1f841feb508807ae4eda4babd854aae0f2 100644 (file)
@@ -30,7 +30,7 @@ class FacebookhomeAction extends FacebookAction
 
         $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);
 
@@ -44,7 +44,7 @@ class FacebookhomeAction extends FacebookAction
 
         if ($flink) {
 
-            if ($_POST['submit'] == 'Send') {       
+            if ($_POST['submit'] == 'Send') {
                 $this->saveNewNotice($flink);
                 return;
             }
@@ -141,10 +141,10 @@ class FacebookhomeAction extends FacebookAction
         $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();
@@ -224,13 +224,13 @@ class FacebookhomeAction extends FacebookAction
         common_end_xml();
 
     }
-    
+
     function saveNewNotice($flink)
     {
-        
+
         $user = $flink->getUser();
 
-        $content = $_POST['status_textarea']; 
+        $content = $_POST['status_textarea'];
 
         if (!$content) {
             $this->showHome($flink, _('No content!'));
@@ -268,5 +268,5 @@ class FacebookhomeAction extends FacebookAction
         common_broadcast_notice($notice);
         $this->showHome($flink, 'Success!');
     }
-    
+
 }