forked from GNUsocial/gnu-social
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!'));
|
$this->clientError(_('This notice is already a favorite!'));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$fave = Fave::addNew($user, $notice);
|
$fave = Fave::addNew($user->getProfile(), $notice);
|
||||||
if (!$fave) {
|
if (!$fave) {
|
||||||
$this->serverError(_('Could not create favorite.'));
|
$this->serverError(_('Could not create favorite.'));
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user