]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
ApiTimelineList: Fixes ServerErrorAction
authorChimo <chimo@chromic.org>
Sun, 15 Feb 2015 21:00:23 +0000 (16:00 -0500)
committerChimo <chimo@chromic.org>
Sun, 15 Feb 2015 21:00:23 +0000 (16:00 -0500)
"No matches for action 'ApiTimelineList' with arguments 'format=atom
id=1'"

for 'api/:user/lists/:id/statuses.:format' URLs

lib/apiaction.php

index d85029f4336ade4e9418afad4e7df32fcdf0eac2..5cebce33da178c753cc2bf4776eb9b9e742da730 100755 (executable)
@@ -1516,6 +1516,11 @@ class ApiAction extends Action
             $aargs['id'] = $id;
         }
 
+        $user = $this->arg('user');
+        if (!empty($user)) {
+            $aargs['user'] = $user;
+        }
+
         $tag = $this->arg('tag');
         if (!empty($tag)) {
             $aargs['tag'] = $tag;