Consistently send Profiles into Fave::addNew()

This commit is contained in:
Brion Vibber
2010-03-23 11:06:37 -07:00
parent 2d79455a1f
commit 533a3bf6a3
3 changed files with 11 additions and 3 deletions

View File

@@ -273,7 +273,7 @@ class FavCommand extends Command
function handle($channel)
{
$notice = $this->getNotice($this->other);
$fave = Fave::addNew($this->user, $notice);
$fave = Fave::addNew($this->user->getProfile(), $notice);
if (!$fave) {
$channel->error($this->user, _('Could not create favorite.'));