Skip to content

Commit 5328848

Browse files
Merge branch 'stable3' into backport/1517/stable3
Signed-off-by: Cristian Scheid <74515775+cristianscheid@users.noreply.github.com>
2 parents 2ab0fd4 + 683a4ee commit 5328848

3 files changed

Lines changed: 20 additions & 19 deletions

File tree

lib/dav/davProperties.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ export const getFavoritesReport = function(): string {
129129
* Get the SEARCH body to search for recently modified files
130130
*
131131
* @param lastModified Oldest timestamp to include (Unix timestamp)
132+
* @param limit Maximum number of items to return
132133
* @example
133134
* ```ts
134135
* // SEARCH for recent files need a different DAV endpoint
@@ -146,7 +147,7 @@ export const getFavoritesReport = function(): string {
146147
* }) as ResponseDataDetailed<FileStat[]>
147148
* ```
148149
*/
149-
export const getRecentSearch = function(lastModified: number): string {
150+
export const getRecentSearch = function(lastModified: number, limit: number = 100): string {
150151
const capabilities = getCapabilities() as { dav?: { search_supports_upload_time?: boolean } }
151152
const supportsUploadTime = capabilities.dav?.search_supports_upload_time
152153

@@ -219,7 +220,7 @@ export const getRecentSearch = function(lastModified: number): string {
219220
</d:order>
220221
</d:orderby>
221222
<d:limit>
222-
<d:nresults>100</d:nresults>
223+
<d:nresults>${limit}</d:nresults>
223224
<ns:firstresult>0</ns:firstresult>
224225
</d:limit>
225226
</d:basicsearch>

package-lock.json

Lines changed: 16 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
"@nextcloud/vite-config": "^2.5.2",
7474
"@types/node": "^24.12.0",
7575
"@vitest/coverage-istanbul": "^4.1.0",
76-
"fast-xml-parser": "^5.5.5",
76+
"fast-xml-parser": "^5.5.8",
7777
"jsdom": "^27.4.0",
7878
"tslib": "^2.8.1",
7979
"typedoc": "^0.28.17",

0 commit comments

Comments
 (0)