]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - actions/apitimelineuser.php
Report a 404 not found if no posts found for User timeline
[quix0rs-gnu-social.git] / actions / apitimelineuser.php
index b105a29dd14a5c7f56727d8ade40cbe827d8a95d..aa6cfca45858c2a4d293248f161d5e737446a580 100644 (file)
@@ -252,6 +252,11 @@ 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;
     }