summaryrefslogtreecommitdiff
path: root/actions/apifavoritecreate.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 /actions/apifavoritecreate.php
parent2d79455a1fb7627a23a6ca77fbab060193f6c43a (diff)
Consistently send Profiles into Fave::addNew()
Diffstat (limited to 'actions/apifavoritecreate.php')
-rw-r--r--actions/apifavoritecreate.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/actions/apifavoritecreate.php b/actions/apifavoritecreate.php
index 3618f9401..00b6349b0 100644
--- a/actions/apifavoritecreate.php
+++ b/actions/apifavoritecreate.php
@@ -123,7 +123,7 @@ class ApiFavoriteCreateAction extends ApiAuthAction
return;
}
- $fave = Fave::addNew($this->user, $this->notice);
+ $fave = Fave::addNew($this->user->getProfile(), $this->notice);
if (empty($fave)) {
$this->clientError(