X-Git-Url: https://git.immae.eu/?a=blobdiff_plain;f=server%2Fhelpers%2Fpeertube-crypto.ts;h=8aca509009bb1649aefce6fe7abdc9046e67a9a2;hb=edacb640332eae37665551d35bf29160707336f0;hp=1d9cab2ce282e86b5f7095098524e608fc0a5eb8;hpb=914af0d9e40787c2ab1a842e1b41136bdd32eaa8;p=github%2FChocobozzz%2FPeerTube.git diff --git a/server/helpers/peertube-crypto.ts b/server/helpers/peertube-crypto.ts index 1d9cab2ce..8aca50900 100644 --- a/server/helpers/peertube-crypto.ts +++ b/server/helpers/peertube-crypto.ts @@ -135,12 +135,11 @@ export { // --------------------------------------------------------------------------- function hashObject (obj: any): Promise { - return jsonld.promises - .normalize(obj, { - algorithm: 'URDNA2015', - format: 'application/n-quads' - }) - .then(res => sha256(res)) + return jsonld.promises.normalize(obj, { + safe: false, + algorithm: 'URDNA2015', + format: 'application/n-quads' + }).then(res => sha256(res)) } function createSignatureHash (signature: any) {