From 054ad9e741fdd15431b1e74b1fe467355e05a585 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 11 Jun 2018 11:46:27 +0200 Subject: [PATCH] Fix 404 in thumbnails creation with corrupted data in the drive --- www/common/common-thumbnail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/common-thumbnail.js b/www/common/common-thumbnail.js index bc8145d46..767b0e92a 100644 --- a/www/common/common-thumbnail.js +++ b/www/common/common-thumbnail.js @@ -256,7 +256,7 @@ define([ var k = getKey(parsed.type, channel); var whenNewThumb = function () { var secret = Hash.getSecrets('file', parsed.hash, password); - var hexFileName = channel; + var hexFileName = secret.channel; var src = Hash.getBlobPathFromHex(hexFileName); var key = secret.keys && secret.keys.cryptKey; FileCrypto.fetchDecryptedMetadata(src, key, function (e, metadata) {