diff options
author | Robin Appelman <robin@icewind.nl> | 2016-07-22 13:58:53 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-07-22 15:20:55 +0200 |
commit | 81e103074ea6ce9e7035734bc527ab582dbca89f (patch) | |
tree | 3037e8325e1e09d401cdff19c49a66786cba3c0a /apps/files | |
parent | a4ba3eadd0d1e04dc4ef5d11dae59c7dc98c4466 (diff) | |
download | nextcloud-server-81e103074ea6ce9e7035734bc527ab582dbca89f.tar.gz nextcloud-server-81e103074ea6ce9e7035734bc527ab582dbca89f.zip |
use limit instead of since when listing recent files
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/lib/Controller/ApiController.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/files/lib/Controller/ApiController.php b/apps/files/lib/Controller/ApiController.php index 8adc73a0a45..7ce83bfca15 100644 --- a/apps/files/lib/Controller/ApiController.php +++ b/apps/files/lib/Controller/ApiController.php @@ -198,8 +198,7 @@ class ApiController extends Controller { * @return DataResponse */ public function getRecentFiles() { - $since = time() - (60 * 60 * 24 * 7);//1 week - $nodes = $this->userFolder->getRecent($since); + $nodes = $this->userFolder->getRecent(100); $files = $this->formatNodes($nodes); return new DataResponse(['files' => $files]); } |