]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
correct the output formats for api user timelines
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 24 Nov 2008 23:41:15 +0000 (18:41 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 24 Nov 2008 23:41:15 +0000 (18:41 -0500)
darcs-hash:20081124234115-5ed1f-4a136027fddd625c39f14b5ec2e3e9d0fd0a6b3b.gz

lib/util.php

index 11967709106c9481200ff733142df5c02a181051..56eeaa25730db9f2e28ad81b965cb26394b916e3 100644 (file)
@@ -1148,11 +1148,11 @@ function common_fancy_url($action, $args=NULL) {
                         case 'user_timeline.rss':
                                return common_path('api/statuses/user_timeline/'.$args['argument'].'.rss');
                         case 'user_timeline.atom':
-                               return common_path('api/statuses/user_timeline/'.$args['argument'].'.rss');
-                        case 'user_timeline.rss':
-                               return common_path('api/statuses/user_timeline/'.$args['argument'].'.rss');
-                        case 'user_timeline.atom':
-                               return common_path('api/statuses/user_timeline/'.$args['argument'].'.rss');
+                               return common_path('api/statuses/user_timeline/'.$args['argument'].'.atom');
+                        case 'user_timeline.json':
+                               return common_path('api/statuses/user_timeline/'.$args['argument'].'.json');
+                        case 'user_timeline.xml':
+                               return common_path('api/statuses/user_timeline/'.$args['argument'].'.xml');
                         default: return common_simple_url($action, $args);
                        }
                 default: return common_simple_url($action, $args);