]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
make sure argument to Fave::addNew() is a profile
authorEvan Prodromou <evan@status.net>
Sun, 21 Feb 2010 01:31:06 +0000 (20:31 -0500)
committerEvan Prodromou <evan@status.net>
Sun, 21 Feb 2010 01:31:06 +0000 (20:31 -0500)
actions/favor.php

index 2aeb1da6134df6ff19a1d7bce8150c89262a7c18..afca9768ae0c4c69c57065101f21f8b6dab6b8ea 100644 (file)
@@ -79,7 +79,7 @@ class FavorAction extends Action
             $this->clientError(_('This notice is already a favorite!'));
             return;
         }
-        $fave = Fave::addNew($user, $notice);
+        $fave = Fave::addNew($user->getProfile(), $notice);
         if (!$fave) {
             $this->serverError(_('Could not create favorite.'));
             return;