]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/command.php
Fix to profile location in FOAF output: longitude was repeating the latitude by mistake
[quix0rs-gnu-social.git] / lib / command.php
index 0b3b3c95a21a4cd20472a4ef5d08474a8ce08d32..216f9e649a33af4660bdc4fcaa2965571d0b1d0c 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.'));
@@ -729,7 +729,7 @@ class LoseCommand extends Command
             return;
         }
 
-        $result=subs_unsubscribe_from($this->user, $this->other);
+        $result = Subscription::cancel($this->getProfile($this->other), $this->user->getProfile());
 
         if ($result) {
             $channel->output($this->user, sprintf(_('Unsubscribed  %s'), $this->other));