summaryrefslogtreecommitdiff
path: root/actions/apifavoritecreate.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/apifavoritecreate.php')
-rw-r--r--actions/apifavoritecreate.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/actions/apifavoritecreate.php b/actions/apifavoritecreate.php
index 3618f9401..0447a92ba 100644
--- a/actions/apifavoritecreate.php
+++ b/actions/apifavoritecreate.php
@@ -25,6 +25,7 @@
* @author Evan Prodromou <evan@status.net>
* @author Zach Copley <zach@status.net>
* @copyright 2009 StatusNet, Inc.
+ * @copyright 2009 Free Software Foundation, Inc http://www.fsf.org
* @license http://www.fsf.org/licensing/licenses/agpl-3.0.html GNU Affero General Public License version 3.0
* @link http://status.net/
*/
@@ -123,7 +124,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(