]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/commandinterpreter.php
Add "followers" and "following" commands
[quix0rs-gnu-social.git] / lib / commandinterpreter.php
index d878fe26809eeb22515211a1556074fedec340f5..ecc08f1018a4a9751a1b704aa1d7838fdd7b6f57 100644 (file)
@@ -47,6 +47,18 @@ class CommandInterpreter
             } else {
                 return new LoginCommand($user);
             }
+         case 'followers':
+            if ($arg) {
+                return null;
+            } else {
+                return new FollowersCommand($user);
+            }
+         case 'following':
+            if ($arg) {
+                return null;
+            } else {
+                return new FollowingCommand($user);
+            }
          case 'on':
             if ($arg) {
                 list($other, $extra) = $this->split_arg($arg);