Fix 404 in thumbnails creation with corrupted data in the drive

pull/1/head
yflory 7 years ago
parent 8f28621bb0
commit 054ad9e741

@ -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) {

Loading…
Cancel
Save