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