make sure argument to Fave::addNew() is a profile

This commit is contained in:
Evan Prodromou 2010-02-20 20:31:06 -05:00
parent 5565216b42
commit a3de4caf49

View File

@ -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;