applications/dashboard/controllers/class.profilecontroller.php
public function Index($User = '', $Username = '', $UserID = '', $Page = FALSE) {
      $this->EditMode(FALSE);
      $this->GetUserInfo($User, $Username, $UserID);
      
      if ($this->User->Admin == 2 && $this->Head) {
         // Don't index internal accounts. This is in part to prevent vendors from getting endless Google alerts.
         $this->Head->AddTag('meta', array('name' => 'robots', 'content' => 'noindex'));
         $this->Head->AddTag('meta', array('name' => 'googlebot', 'content' => 'noindex'));
      }

      // if ($this->User->UserID == Gdn::Session()->UserID)
      //    return $this->Notifications($Page);
      // elseif (C('Garden.Profile.ShowActivities', TRUE))
      if (C('Garden.Profile.ShowActivities', TRUE))
         return $this->Activity($User, $Username, $UserID, $Page);
      else
         return Gdn::Dispatcher()->Dispatch(UserUrl($this->User, '', 'discussions'));
   }
public function Index($User = '', $Username = '', $UserID = '', $Page = FALSE) {
      $this->EditMode(FALSE);
      $this->GetUserInfo($User, $Username, $UserID);
      
      if ($this->User->Admin == 2 && $this->Head) {
         // Don't index internal accounts. This is in part to prevent vendors from getting endless Google alerts.
         $this->Head->AddTag('meta', array('name' => 'robots', 'content' => 'noindex'));
         $this->Head->AddTag('meta', array('name' => 'googlebot', 'content' => 'noindex'));
      }

      // if ($this->User->UserID == Gdn::Session()->UserID)
      //    return $this->Notifications($Page);
      // elseif (C('Garden.Profile.ShowActivities', TRUE))
      if (C('Garden.Profile.ShowActivities', TRUE))
         return $this->Activity($User, $Username, $UserID, $Page);
      else
         return Gdn::Dispatcher()->Dispatch(UserUrl($this->User, '', 'discussions'));
   }
public function Index ( $ User = '' , $ Username = '' , $ UserID = '' , $ Page = FALSE ) { $ this -> EditMode ( FALSE ) ; $ this -> GetUserInfo ( $ User , $ Username , $ UserID ) ; if ( $ this -> User -> Admin == 2 && $ this -> Head ) { // Don't index internal accounts. This is in part to prevent vendors from getting endless Google alerts. $ this -> Head -> AddTag ( 'meta' , array ( 'name' => 'robots' , 'content' => 'noindex' ) ) ; $ this -> Head -> AddTag ( 'meta' , array ( 'name' => 'googlebot' , 'content' => 'noindex' ) ) ; } // if ($this->User->UserID == Gdn::Session()->UserID) //    return $this->Notifications($Page); // elseif (C('Garden.Profile.ShowActivities', TRUE)) if ( C ( 'Garden.Profile.ShowActivities' , TRUE ) ) return $ this -> Activity ( $ User , $ Username , $ UserID , $ Page ) ; else return Gdn :: Dispatcher ( ) -> Dispatch ( UserUrl ( $ this -> User , '' , 'discussions' ) ) ; }
Default profile page.

If current user's profile, get notifications. Otherwise show their activity (if available) or discussions.

@since 2.0.0
@access public
@param mixed $User Unique identifier, possible ID or username.
@param string $Username.
@param int $UserID Unique ID.
Default profile page .