summaryrefslogtreecommitdiff
path: root/actions/favor.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2010-02-20 20:31:06 -0500
committerEvan Prodromou <evan@status.net>2010-02-20 20:31:06 -0500
commita3de4caf497b5d4a4d34477279fefe4c4d7ad8e2 (patch)
tree1cfe9da761232f951a82b9d5a32a0dc1a18097f0 /actions/favor.php
parent5565216b42fc97d84c9602864b2095e557769717 (diff)
make sure argument to Fave::addNew() is a profile
Diffstat (limited to 'actions/favor.php')
-rw-r--r--actions/favor.php2
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;