mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-03-13 18:58:53 +01:00
Fix db file data source returning file instead of fd from share folder
This commit is contained in:
parent
3c35a383c1
commit
91caf39184
1 changed files with 4 additions and 2 deletions
|
@ -208,8 +208,10 @@ class FileNpDbDataSource implements FileDataSource2 {
|
|||
account: account.toDb(),
|
||||
dir: File(path: shareDirPath).toDbKey(),
|
||||
);
|
||||
results.addAll(shareDirResults.map((e) => DbFileConverter.fromDb(
|
||||
account.userId.toCaseInsensitiveString(), e)));
|
||||
results.addAll(shareDirResults.where((f) => f.isCollection != true).map(
|
||||
(e) => DbFileConverter.fromDb(
|
||||
account.userId.toCaseInsensitiveString(), e)
|
||||
.toDescriptor()));
|
||||
} on DbNotFoundException catch (_) {
|
||||
// normal when there's no cache
|
||||
} catch (e, stackTrace) {
|
||||
|
|
Loading…
Reference in a new issue