make sure argument to Fave::addNew() is a profile
This commit is contained in:
parent
5565216b42
commit
a3de4caf49
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user