]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/command.php
Tidying up getUser calls to profiles and some events
[quix0rs-gnu-social.git] / lib / command.php
index e93b7fbfee62bb2237b9a69fdb7fb8e0cf8816dd..57708deaf8e1dc75f7d4c3a363ec9a6f6e5b4d18 100644 (file)
@@ -777,8 +777,7 @@ class SubCommand extends Command
         }
 
         try {
-            Subscription::start($this->user->getProfile(),
-                                $target);
+            Subscription::start($this->user->getProfile(), $target);
             // TRANS: Text shown after having subscribed to another user successfully.
             // TRANS: %s is the name of the user the subscription was requested for.
             $channel->output($this->user, sprintf(_('Subscribed to %s.'), $this->other));
@@ -809,8 +808,7 @@ class UnsubCommand extends Command
         $target = $this->getProfile($this->other);
 
         try {
-            Subscription::cancel($this->user->getProfile(),
-                                 $target);
+            Subscription::cancel($this->user->getProfile(), $target);
             // TRANS: Text shown after having unsubscribed from another user successfully.
             // TRANS: %s is the name of the user the unsubscription was requested for.
             $channel->output($this->user, sprintf(_('Unsubscribed from %s.'), $this->other));