]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
showstream for singleuser instance too
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 3 Feb 2015 21:33:01 +0000 (22:33 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 3 Feb 2015 21:33:01 +0000 (22:33 +0100)
singleuser instances shouldn't be too special and have too many
alternative methods of doing stuff.

lib/router.php

index 45efceec3656d74cad53749d7e15602cd48bcc3a..c07307fb0ec776ed1eb7ca3cfbfc68131392d4cd 100644 (file)
@@ -1066,15 +1066,15 @@ class Router
                 $m->connect(':nickname/rsd.xml',
                             array('action' => 'rsd'),
                             array('nickname' => Nickname::DISPLAY_FMT));
+            }
 
-                $m->connect(':nickname',
-                            array('action' => 'showstream'),
-                            array('nickname' => Nickname::DISPLAY_FMT));
+            $m->connect(':nickname',
+                        array('action' => 'showstream'),
+                        array('nickname' => Nickname::DISPLAY_FMT));
 
-                $m->connect(':nickname/',
-                            array('action' => 'showstream'),
-                            array('nickname' => Nickname::DISPLAY_FMT));
-            }
+            $m->connect(':nickname/',
+                        array('action' => 'showstream'),
+                        array('nickname' => Nickname::DISPLAY_FMT));
 
             // AtomPub API