aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators/activitypub
diff options
context:
space:
mode:
authorRigel Kent <sendmemail@rigelk.eu>2021-05-31 19:47:14 +0200
committerRigel Kent <sendmemail@rigelk.eu>2021-05-31 19:47:24 +0200
commit70330f63236a3200829f2ba76c10cca88326b858 (patch)
tree4f5de29d0960ca05fa92db541a577eb051e8828a /server/middlewares/validators/activitypub
parent732c95cc979c7aabaf1a0bf436b512bab3ea0426 (diff)
downloadPeerTube-70330f63236a3200829f2ba76c10cca88326b858.tar.gz
PeerTube-70330f63236a3200829f2ba76c10cca88326b858.tar.zst
PeerTube-70330f63236a3200829f2ba76c10cca88326b858.zip
improve api param message for dates
Diffstat (limited to 'server/middlewares/validators/activitypub')
-rw-r--r--server/middlewares/validators/activitypub/signature.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/activitypub/signature.ts b/server/middlewares/validators/activitypub/signature.ts
index 7c4e49463..7896a6128 100644
--- a/server/middlewares/validators/activitypub/signature.ts
+++ b/server/middlewares/validators/activitypub/signature.ts
@@ -14,7 +14,7 @@ const signatureValidator = [
14 .custom(isSignatureTypeValid).withMessage('Should have a valid signature type'), 14 .custom(isSignatureTypeValid).withMessage('Should have a valid signature type'),
15 body('signature.created') 15 body('signature.created')
16 .optional() 16 .optional()
17 .custom(isDateValid).withMessage('Should have a valid signature created date'), 17 .custom(isDateValid).withMessage('Should have a signature created date that conforms to ISO 8601'),
18 body('signature.creator') 18 body('signature.creator')
19 .optional() 19 .optional()
20 .custom(isSignatureCreatorValid).withMessage('Should have a valid signature creator'), 20 .custom(isSignatureCreatorValid).withMessage('Should have a valid signature creator'),