diff --git a/service/notification.service.ts b/service/notification.service.ts index 1774c5e4..52028387 100644 --- a/service/notification.service.ts +++ b/service/notification.service.ts @@ -76,8 +76,8 @@ export class NotificationService extends RequestScopeService { html: makeNewCommentEmailTemplate({ page_slug: fullComment.page.title || fullComment.page.slug, by_nickname: comment.by_nickname, - approve_link: `${resolvedConfig.host}/api/open/approve?token=${approveToken}`, - unsubscribe_link: `${resolvedConfig.host}/api/open/unsubscribe?token=${unsubscribeToken}`, + approve_link: `${resolvedConfig.host}/open/approve?token=${approveToken}`, + unsubscribe_link: `${resolvedConfig.host}/open/unsubscribe?token=${unsubscribeToken}`, content: markdown.render(comment.content), notification_preferences_link: `${resolvedConfig.host}/user`, }) @@ -331,7 +331,7 @@ function makeNewCommentEmailTemplate(data: { - Approve without login + Approve/Reply without login diff --git a/service/webhook.service.ts b/service/webhook.service.ts index b6db86d5..96fb21cd 100644 --- a/service/webhook.service.ts +++ b/service/webhook.service.ts @@ -55,7 +55,7 @@ export class WebhookService extends RequestScopeService { }) const approveToken = this.tokenService.genApproveToken(comment.id) - const approveLink = `${resolvedConfig.host}/api/open/approve?token=${approveToken}` + const approveLink = `${resolvedConfig.host}/open/approve?token=${approveToken}` statService.capture('webhook_trigger', { properties: {