mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-09 02:36:31 +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)) {
|
if (!file_util.isSupportedMime(e.mimeType)) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
// show only link shares
|
||||||
|
if (s.url == null) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
if (ev.account.roots
|
if (ev.account.roots
|
||||||
.every((r) => r.isNotEmpty && !e.path.startsWith("/$r/"))) {
|
.every((r) => r.isNotEmpty && !e.path.startsWith("/$r/"))) {
|
||||||
// ignore files not under root dirs
|
// ignore files not under root dirs
|
||||||
|
|
Loading…
Reference in a new issue