From ce56429094f07d618b360a37b0b324547cfbc793 Mon Sep 17 00:00:00 2001 From: Randy Date: Mon, 26 Apr 2021 23:25:47 +0800 Subject: [PATCH] fix page slug --- public/doc/_sidebar.md | 2 +- service/webhook.service.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/public/doc/_sidebar.md b/public/doc/_sidebar.md index bc30c612..502e3d7a 100644 --- a/public/doc/_sidebar.md +++ b/public/doc/_sidebar.md @@ -6,7 +6,7 @@ - [Vercel](/self-host/vercel.md) - **Integration** - [Docsify](/integration/docsify.md) - - [Hexo](https://blog.cusdis.com/hello-world/integate-cusdis-in-hexo/) + - [Hexo](https://blog.cusdis.com/integate-cusdis-in-hexo/) - **Features** - [Notification](/features/notification.md) - **Advanced** diff --git a/service/webhook.service.ts b/service/webhook.service.ts index 0d0e0182..a1d8f4e9 100644 --- a/service/webhook.service.ts +++ b/service/webhook.service.ts @@ -42,6 +42,7 @@ export class WebhookService extends RequestScopeService { page: { select: { title: true, + slug: true, project: { select: { title: true @@ -62,7 +63,7 @@ export class WebhookService extends RequestScopeService { by_nickname: comment.by_nickname, by_email: comment.by_email, content: comment.content, - page_id: comment.pageId, + page_id: fullComment.page.slug, page_title: fullComment.page.title, project_title: fullComment.page.project.title, approve_link: approveLink,