Don't try to get files metadata

pull/1/head
yflory 5 years ago
parent 799d93eb48
commit 450c920b84

@ -693,6 +693,7 @@ define([
var secret = Hash.getSecrets(parsed.type, parsed.hash, data.password); var secret = Hash.getSecrets(parsed.type, parsed.hash, data.password);
if (!secret || !secret.channel) { return void cb ({error: 'EINVAL'}); } if (!secret || !secret.channel) { return void cb ({error: 'EINVAL'}); }
Nthen(function (waitFor) { Nthen(function (waitFor) {
if (parsed.hashData.type !== 'pad') { return; }
// Set the correct owner and expiration time if we can find them // Set the correct owner and expiration time if we can find them
postMessage('GET_PAD_METADATA', { postMessage('GET_PAD_METADATA', {
channel: secret.channel channel: secret.channel

Loading…
Cancel
Save