Skip to content

Commit 6a74a82

Browse files
authored
Merge pull request #59669 from nextcloud/backport/58908/stable30
[stable30] feat(recent-files): allow configuring image grouping
2 parents 28e700a + 6ffae37 commit 6a74a82

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
@@ -174,6 +174,10 @@ public function index($dir = '', $view = '', $fileid = null) {
174174
$this->initialState->provideInitialState('config', $this->userConfig->getConfigs());
175175
$this->initialState->provideInitialState('viewConfigs', $this->viewConfig->getConfigs());
176176
$this->initialState->provideInitialState('recent_limit', $this->appConfig->getAppValueInt('recent_limit', 100));
177+
// Not yet consumed by the frontend, provided for future implementation
178+
$this->initialState->provideInitialState('group_recent_files', $this->appConfig->getAppValueBool('group_recent_files', false));
179+
$this->initialState->provideInitialState('recent_files_group_mime_types', $this->appConfig->getAppValueArray('recent_files_group_mime_types', []));
180+
$this->initialState->provideInitialState('recent_files_group_timespan_minutes', $this->appConfig->getAppValueInt('recent_files_group_timespan_minutes', 2));
177181

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

0 commit comments

Comments
 (0)