fix: resolve cursor pagination query selection logic (fixes #3369)
The cursor pagination was failing due to inconsistent query selection logic in getFileCursorQuery. The previous implementation had overlapping conditions that could lead to incorrect query selection when token.StartWithFile was true but args.FolderOnly was also true. This fix reorganizes the query selection logic to be mutually exclusive: 1. Mixed type queries take precedence 2. Folder-only queries are handled next 3. File-only queries (when folders are exhausted) are handled last 4. Default case maintains original behavior for normal pagination This ensures consistent query selection and prevents the 'Invalid cloudreve uri' errors that occurred when the frontend received malformed pagination responses.pull/3370/head
parent
006680c5df
commit
6c219120c7
Loading…
Reference in new issue