Skip to content

Commit c3dd5ad

Browse files
cristianscheidbackportbot[bot]
authored andcommitted
feat(recent-search): pass recent_limit config value to getRecentSearch function
feat(recent-search): pass recent_limit config value to getRecentSearch function Signed-off-by: Cristian Scheid <cristianscheid@gmail.com> [skip ci]
1 parent 8bb59f3 commit c3dd5ad

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

apps/files/src/services/Recent.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import { pinia } from '../store/index.ts'
3333
const client = davGetClient()
3434

3535
const lastTwoWeeksTimestamp = Math.round((Date.now() / 1000) - (60 * 60 * 24 * 14))
36+
const recentLimit = loadState<number>('files', 'recent_limit', 100)
3637

3738
/**
3839
* Helper to map a WebDAV result to a Nextcloud node

0 commit comments

Comments
 (0)