mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-24 10:28:50 +01:00
Fix shared file is always ignored
The code is wrongly comparing with a / prefix that's got removed
This commit is contained in:
parent
1c38dd8fce
commit
256775ffae
1 changed files with 1 additions and 1 deletions
|
@ -344,7 +344,7 @@ class ListSharingBloc extends Bloc<ListSharingBlocEvent, ListSharingBlocState> {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if (ev.account.roots
|
if (ev.account.roots
|
||||||
.every((r) => r.isNotEmpty && !s.path.startsWith("/$r/"))) {
|
.every((r) => r.isNotEmpty && !s.path.startsWith("$r/"))) {
|
||||||
// ignore files not under root dirs
|
// ignore files not under root dirs
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue