mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-23 01:06:21 +01:00
No longer list non-link shares by me
This commit is contained in:
parent
bda5a9826c
commit
c2c3508414
1 changed files with 4 additions and 0 deletions
|
@ -220,6 +220,10 @@ class ListSharingBloc extends Bloc<ListSharingBlocEvent, ListSharingBlocState> {
|
|||
if (!file_util.isSupportedMime(e.mimeType)) {
|
||||
return null;
|
||||
}
|
||||
// show only link shares
|
||||
if (s.url == null) {
|
||||
return null;
|
||||
}
|
||||
if (ev.account.roots
|
||||
.every((r) => r.isNotEmpty && !e.path.startsWith("/$r/"))) {
|
||||
// ignore files not under root dirs
|
||||
|
|
Loading…
Reference in a new issue