aboutsummaryrefslogtreecommitdiff
path: root/packages/server/src/routes/api/v1/repo/log.ts
diff options
context:
space:
mode:
Diffstat (limited to 'packages/server/src/routes/api/v1/repo/log.ts')
-rw-r--r--packages/server/src/routes/api/v1/repo/log.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/server/src/routes/api/v1/repo/log.ts b/packages/server/src/routes/api/v1/repo/log.ts
index cf53d6b..aaad042 100644
--- a/packages/server/src/routes/api/v1/repo/log.ts
+++ b/packages/server/src/routes/api/v1/repo/log.ts
@@ -43,6 +43,8 @@ export default function(fastify: FastifyInstance, opts: FastifyPluginOptions, do
const stats = await commit.stats();
+ const is_signed = await commit.isSigned();
+
const data: APICommit = {
message: commit.message,
author: {
@@ -50,7 +52,8 @@ export default function(fastify: FastifyInstance, opts: FastifyPluginOptions, do
email: commit.author().email,
fingerprint: await commit.author().fingerprint().catch(() => null)
},
- isSigned: await commit.isSigned(),
+ isSigned: is_signed,
+ signatureVerified: is_signed ? await commit.verifySignature().catch(() => false) : null,
date: commit.date,
insertions: stats.insertions,
deletions: stats.deletions,