]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apifavoritecreate.php
move url shortener superclass to lib from plugin
[quix0rs-gnu-social.git] / actions / apifavoritecreate.php
index 3618f940183d08f3303fe519d95d86ca312674b4..00b6349b0a7a7fce85cd7f4dbed62816209b98ac 100644 (file)
@@ -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(