Fixed hash version

This commit is contained in:
Zuzanna 2025-06-12 12:53:08 +02:00
parent c3ef511e87
commit 353b9b3b7d
2 changed files with 1 additions and 3 deletions

View File

@ -306,7 +306,6 @@ Version 4: Data URL when not a realtime link yet (new pad or "static" app)
parsed.channel = hash.slice(0, 32);
parsed.key = hash.slice(32, 56);
parsed.version = 0;
parsed.auditorKey = getAuditorKey(hashArr);
return parsed;
}

View File

@ -27,11 +27,10 @@ define([
var keys = Utils.secret && Utils.secret.keys;
var parsed;
if (parsedHash) {
parsed = Utils.Hash.parseTypeHash('pad', parsedHash.hash.slice(1));
parsed = parsedHash.hashData;
} else {
parsed = Utils.Hash.parseTypeHash('pad', hash.slice(1));
}
if (parsed && parsed.auditorKey) {
meta.form_auditorKey = parsed.auditorKey;
meta.form_auditorHash = hash;