Skip to content

Commit

Permalink
When clicking on the user is following you notification redirect to u…
Browse files Browse the repository at this point in the history
…ser profile page fixes #657

.
  • Loading branch information
marjanapesic committed Jan 29, 2015
1 parent ed57534 commit 4c706f5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ public static function fire($user_follow){

$notification->save();
}

public function redirectToTarget()
{
$user = $this->getTargetObject();
Yii::app()->getController()->redirect($user->getUrl());
}
}

?>

0 comments on commit 4c706f5

Please sign in to comment.