]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/command.php
Consistently send Profiles into Fave::addNew()
[quix0rs-gnu-social.git] / lib / command.php
index 9d550550f75562849873ce0177966dc4e937e444..8080fb8bc0071de9f4a4b991d1fb7f6a524ea69b 100644 (file)
@@ -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.'));