Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/photos.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/Controller/AlbumsController.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Controller/AlbumsController.php b/lib/Controller/AlbumsController.php
index 4a475dca..678ea0a7 100644
--- a/lib/Controller/AlbumsController.php
+++ b/lib/Controller/AlbumsController.php
@@ -142,6 +142,11 @@ class AlbumsController extends Controller {
return [];
}
+ // Ignore folder with a .noimage or .nomedia node
+ if ($folder->nodeExists('.noimage') || $folder->nodeExists('.nomedia')) {
+ return [];
+ }
+
$nodes = $folder->getDirectoryListing();
foreach ($nodes as $node) {