From: Evan Prodromou Date: Sun, 21 Feb 2010 01:31:06 +0000 (-0500) Subject: make sure argument to Fave::addNew() is a profile X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a3de4caf497b5d4a4d34477279fefe4c4d7ad8e2;p=quix0rs-gnu-social.git make sure argument to Fave::addNew() is a profile --- diff --git a/actions/favor.php b/actions/favor.php index 2aeb1da613..afca9768ae 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;