|
|
@ -384,10 +384,7 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
// This is a burn after reading URL: make sure our owner key is still valid
|
|
|
|
// This is a burn after reading URL: make sure our owner key is still valid
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
var nacl = window.nacl;
|
|
|
|
var publicKey = Utils.Hash.getSignPublicFromPrivate(burnAfterReading);
|
|
|
|
var key = nacl.util.decodeBase64(Crypto.b64AddSlashes(burnAfterReading));
|
|
|
|
|
|
|
|
var kp = nacl.sign.keyPair.fromSecretKey(key);
|
|
|
|
|
|
|
|
var publicKey = nacl.util.encodeBase64(kp.publicKey);
|
|
|
|
|
|
|
|
Cryptpad.getPadMetadata({
|
|
|
|
Cryptpad.getPadMetadata({
|
|
|
|
channel: secret.channel
|
|
|
|
channel: secret.channel
|
|
|
|
}, waitFor(function (md) {
|
|
|
|
}, waitFor(function (md) {
|
|
|
|