Skip to content

Commit

Permalink
change approvelink
Browse files Browse the repository at this point in the history
  • Loading branch information
djyde committed Apr 30, 2021
1 parent d02af96 commit 1113b19
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions service/notification.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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`,
})
Expand Down Expand Up @@ -331,7 +331,7 @@ function makeNewCommentEmailTemplate(data: {
<tbody>
<tr>
<td align="center" bgcolor="#3f72af" class="inner-td" style="border-radius:6px; font-size:16px; text-align:left; background-color:inherit;">
<a href="{{approve_link}}" style="background-color:#3f72af; border:1px solid #333333; border-color:#333333; border-radius:6px; border-width:1px; color:#ffffff; display:inline-block; font-size:12px; font-weight:bold; letter-spacing:0px; line-height:normal; padding:12px 18px 12px 18px; text-align:center; text-decoration:none; border-style:solid; font-family:verdana,geneva,sans-serif;" target="_blank">Approve without login</a>
<a href="{{approve_link}}" style="background-color:#3f72af; border:1px solid #333333; border-color:#333333; border-radius:6px; border-width:1px; color:#ffffff; display:inline-block; font-size:12px; font-weight:bold; letter-spacing:0px; line-height:normal; padding:12px 18px 12px 18px; text-align:center; text-decoration:none; border-style:solid; font-family:verdana,geneva,sans-serif;" target="_blank">Approve/Reply without login</a>
</td>
</tr>
</tbody>
Expand Down
2 changes: 1 addition & 1 deletion service/webhook.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down

1 comment on commit 1113b19

@vercel
Copy link

@vercel vercel bot commented on 1113b19 Apr 30, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.