summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2016-07-22 13:58:53 +0200
committerRobin Appelman <robin@icewind.nl>2016-07-22 15:20:55 +0200
commit81e103074ea6ce9e7035734bc527ab582dbca89f (patch)
tree3037e8325e1e09d401cdff19c49a66786cba3c0a /apps/files
parenta4ba3eadd0d1e04dc4ef5d11dae59c7dc98c4466 (diff)
downloadnextcloud-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.php3
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]);
}