summaryrefslogtreecommitdiff
path: root/lib/command.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-03-23 11:06:37 -0700
committerBrion Vibber <brion@pobox.com>2010-03-23 11:06:37 -0700
commit533a3bf6a3180237cfffb8baf29ea3a3f7ec34f8 (patch)
treeef0c2815862253cdb1e98052301d7d09f1b05aff /lib/command.php
parent2d79455a1fb7627a23a6ca77fbab060193f6c43a (diff)
Consistently send Profiles into Fave::addNew()
Diffstat (limited to 'lib/command.php')
-rw-r--r--lib/command.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/command.php b/lib/command.php
index f7421269d..216f9e649 100644
--- a/lib/command.php
+++ b/lib/command.php
@@ -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.'));