diff options
author | Evan Prodromou <evan@status.net> | 2010-02-20 20:31:06 -0500 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2010-02-20 20:31:06 -0500 |
commit | a3de4caf497b5d4a4d34477279fefe4c4d7ad8e2 (patch) | |
tree | 1cfe9da761232f951a82b9d5a32a0dc1a18097f0 /actions/favor.php | |
parent | 5565216b42fc97d84c9602864b2095e557769717 (diff) |
make sure argument to Fave::addNew() is a profile
Diffstat (limited to 'actions/favor.php')
-rw-r--r-- | actions/favor.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/favor.php b/actions/favor.php index 2aeb1da61..afca9768a 100644 --- a/actions/favor.php +++ b/actions/favor.php @@ -79,7 +79,7 @@ class FavorAction extends Action $this->clientError(_('This notice is already a favorite!')); return; } - $fave = Fave::addNew($user, $notice); + $fave = Fave::addNew($user->getProfile(), $notice); if (!$fave) { $this->serverError(_('Could not create favorite.')); return; |