]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
/:nickname/all/rss had to be before /:tagger/all/:tag
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 9 Jul 2015 22:27:26 +0000 (00:27 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 9 Jul 2015 22:27:26 +0000 (00:27 +0200)
...though this makes it impossible to get a list called "rss"

so FIXME, the RSS 1.0 actions should be in the API or something

lib/router.php

index f6360377dab88cc380574f384838332e64e44dd0..249e5e882397128e96ff76544fb2b70aaf41c34f 100644 (file)
@@ -949,6 +949,13 @@ class Router
                         array('action' => 'subqueue'),
                         array('nickname' => Nickname::DISPLAY_FMT));
 
+            // some targeted RSS 1.0 actions (extends TargetedRss10Action)
+            foreach (array('all', 'replies') as $a) {
+                $m->connect(':nickname/'.$a.'/rss',
+                            array('action' => $a.'rss'),
+                            array('nickname' => Nickname::DISPLAY_FMT));
+            }
+
             // people tags
 
             $m->connect(':nickname/peopletags',
@@ -1016,12 +1023,6 @@ class Router
                             array('nickname' => Nickname::DISPLAY_FMT));
             }
 
-            foreach (array('all', 'replies') as $a) {
-                $m->connect(':nickname/'.$a.'/rss',
-                            array('action' => $a.'rss'),
-                            array('nickname' => Nickname::DISPLAY_FMT));
-            }
-
             $m->connect(':nickname/avatar',
                         array('action' => 'avatarbynickname'),
                         array('nickname' => Nickname::DISPLAY_FMT));