albumMapper->getSharedAlbumsForCollaborator($token, AlbumMapper::TYPE_LINK); $nodes = $this->getFileIdForAlbums($fileId, $publicAlbums); if (\count($nodes) === 0) { return new DataResponse([], Http::STATUS_NOT_FOUND); } $node = array_pop($nodes); return $this->fetchPreview($node, $x, $y); } }