diff options
Diffstat (limited to 'lib/Controller/AlbumsController.php')
-rw-r--r-- | lib/Controller/AlbumsController.php | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/Controller/AlbumsController.php b/lib/Controller/AlbumsController.php index fc3044b5..d047474b 100644 --- a/lib/Controller/AlbumsController.php +++ b/lib/Controller/AlbumsController.php @@ -1,4 +1,5 @@ <?php + declare(strict_types=1); /** * @copyright Copyright (c) 2019, Roeland Jago Douma <roeland@famdouma.nl> @@ -98,7 +99,6 @@ class AlbumsController extends Controller { 'etag' => $node->getEtag(), 'fileid' => $node->getId(), 'filename' => $path, - 'etag' => $node->getEtag(), 'lastmod' => $node->getMTime(), 'mime' => $node->getMimetype(), 'size' => $node->getSize(), @@ -109,7 +109,7 @@ class AlbumsController extends Controller { return $result; } - private function scanCurrentFolder(Folder $folder, bool $shared): iterable { + private function scanCurrentFolder(Folder $folder, bool $shared): iterable { $nodes = $folder->getDirectoryListing(); // add current folder to iterable set @@ -135,7 +135,8 @@ class AlbumsController extends Controller { } private function isShared(Node $node): bool { - return $node->getStorage()->instanceOfStorage(SharedStorage::class); + return $node->getStorage()->instanceOfStorage(SharedStorage::class) || + $node->getStorage()->instanceOfStorage(\OCA\GroupFolders\Mount\GroupFolderStorage::class); } private function scanFolder(Folder $folder, int $depth, bool $shared): bool { |