Skip to content

Commit 089493b

Browse files
authored
Merge pull request #59670 from nextcloud/backport/58908/stable29
[stable29] feat(recent-files): allow configuring image grouping
2 parents 89fb860 + bc6641a commit 089493b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

apps/files/lib/Controller/ViewController.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,10 @@ public function index($dir = '', $view = '', $fileid = null) {
221221
$this->initialState->provideInitialState('config', $this->userConfig->getConfigs());
222222
$this->initialState->provideInitialState('viewConfigs', $this->viewConfig->getConfigs());
223223
$this->initialState->provideInitialState('recent_limit', $this->appConfig->getAppValueInt('recent_limit', 100));
224+
// Not yet consumed by the frontend, provided for future implementation
225+
$this->initialState->provideInitialState('group_recent_files', $this->appConfig->getAppValueBool('group_recent_files', false));
226+
$this->initialState->provideInitialState('recent_files_group_mime_types', $this->appConfig->getAppValueArray('recent_files_group_mime_types', []));
227+
$this->initialState->provideInitialState('recent_files_group_timespan_minutes', $this->appConfig->getAppValueInt('recent_files_group_timespan_minutes', 2));
224228

225229
// File sorting user config
226230
$filesSortingConfig = json_decode($this->config->getUserValue($userId, 'files', 'files_sorting_configs', '{}'), true);

0 commit comments

Comments
 (0)