From d88ed2ddc927c73ddf4bdf303372150d3bd24322 Mon Sep 17 00:00:00 2001 From: Cristian Scheid Date: Fri, 6 Mar 2026 19:02:53 -0300 Subject: [PATCH 1/2] feat(recent-search): add parameter to allow dynamic limit of returned items Signed-off-by: Cristian Scheid --- lib/dav/davProperties.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dav/davProperties.ts b/lib/dav/davProperties.ts index 6d97e40e0..59bd9071a 100644 --- a/lib/dav/davProperties.ts +++ b/lib/dav/davProperties.ts @@ -196,7 +196,7 @@ export const getRecentSearch = function(lastModified: number): string { - 100 + ${limit} 0 From 3f2682b2c4f415c6de6e44a73a3f3f34b4771a2a Mon Sep 17 00:00:00 2001 From: Cristian Scheid Date: Wed, 25 Mar 2026 13:41:55 -0300 Subject: [PATCH 2/2] refactor(recent-search): bring back timestamp section on where clause Signed-off-by: Cristian Scheid --- lib/dav/davProperties.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/dav/davProperties.ts b/lib/dav/davProperties.ts index 59bd9071a..619185673 100644 --- a/lib/dav/davProperties.ts +++ b/lib/dav/davProperties.ts @@ -128,6 +128,7 @@ export const getFavoritesReport = function(): string { * Get the SEARCH body to search for recently modified files * * @param lastModified Oldest timestamp to include (Unix timestamp) + * @param limit Maximum number of items to return * @example * ```ts * // SEARCH for recent files need a different DAV endpoint @@ -145,7 +146,7 @@ export const getFavoritesReport = function(): string { * }) as ResponseDataDetailed * ``` */ -export const getRecentSearch = function(lastModified: number): string { +export const getRecentSearch = function(lastModified: number, limit: number = 100): string { return `