Skip to content

Commit

Permalink
Merge pull request #159 from nextcloud/fix/75/hige_noimage_folders_in…
Browse files Browse the repository at this point in the history
…_album_overview

Respect .noimage and .nomedia files
  • Loading branch information
skjnldsv authored Jan 27, 2020
2 parents 85ea3ae + 5acd996 commit cec404e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/Controller/AlbumsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,11 @@ private function scanFolder(Folder $folder, int $depth, bool $shared): iterable
return [];
}

// Ignore folder with a .noimage or .nomedia node
if ($folder->nodeExists('.noimage') || $folder->nodeExists('.nomedia')) {
return [];
}

$nodes = $folder->getDirectoryListing();

foreach ($nodes as $node) {
Expand Down

0 comments on commit cec404e

Please sign in to comment.