summaryrefslogtreecommitdiff
path: root/actions/favor.php
diff options
context:
space:
mode:
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;