]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Revert "Report a 404 not found if no posts found for User timeline"
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 4 Dec 2014 18:45:27 +0000 (19:45 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 4 Dec 2014 18:45:27 +0000 (19:45 +0100)
This reverts commit 5295e8d4de9c20ee06c3219669f5824c492478f9.

Just reply with an empty timeline...

actions/apitimelineuser.php

index aa6cfca45858c2a4d293248f161d5e737446a580..b105a29dd14a5c7f56727d8ade40cbe827d8a95d 100644 (file)
@@ -252,11 +252,6 @@ class ApiTimelineUserAction extends ApiBareAuthAction
             }
         }
 
-        if (empty($notices)) {
-            // TRANS: When no posts were found with specific or default parameters
-            $this->clientError(_('Did not find any posts within search parameters'), 404);
-        }
-
         return $notices;
     }