aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers/peertube-crypto.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/helpers/peertube-crypto.ts')
-rw-r--r--server/helpers/peertube-crypto.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/server/helpers/peertube-crypto.ts b/server/helpers/peertube-crypto.ts
index cb5f27240..8ef7b1359 100644
--- a/server/helpers/peertube-crypto.ts
+++ b/server/helpers/peertube-crypto.ts
@@ -62,10 +62,7 @@ function isJsonLDSignatureVerified (fromActor: ActorModel, signedDocument: any)
62 62
63 return jsig.promises 63 return jsig.promises
64 .verify(signedDocument, options) 64 .verify(signedDocument, options)
65 .then((result: { verified: boolean }) => { 65 .then((result: { verified: boolean }) => result.verified)
66 logger.info('coucou', result)
67 return result.verified
68 })
69 .catch(err => { 66 .catch(err => {
70 logger.error('Cannot check signature.', { err }) 67 logger.error('Cannot check signature.', { err })
71 return false 68 return false