From 9fd9370120db99610da841c5d85374bd78223ea7 Mon Sep 17 00:00:00 2001 From: Maksim Eltyshev Date: Thu, 22 May 2025 11:16:08 +0200 Subject: [PATCH] fix: Remove curly bracket typo from HTML links Closes #1142 --- server/api/helpers/actions/create-one.js | 2 +- server/api/helpers/notifications/create-one.js | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/server/api/helpers/actions/create-one.js b/server/api/helpers/actions/create-one.js index ba1e6494..d90b4020 100644 --- a/server/api/helpers/actions/create-one.js +++ b/server/api/helpers/actions/create-one.js @@ -19,7 +19,7 @@ const buildTitle = (action, t) => { const buildBodyByFormat = (board, card, action, actorUser, t) => { const markdownCardLink = `[${escapeMarkdown(card.name)}](${sails.config.custom.baseUrl}/cards/${card.id})`; - const htmlCardLink = `${escapeHtml(card.name)}`; + const htmlCardLink = `${escapeHtml(card.name)}`; switch (action.type) { case Action.Types.CREATE_CARD: { diff --git a/server/api/helpers/notifications/create-one.js b/server/api/helpers/notifications/create-one.js index 990e6a41..70aedbb9 100644 --- a/server/api/helpers/notifications/create-one.js +++ b/server/api/helpers/notifications/create-one.js @@ -21,7 +21,7 @@ const buildTitle = (notification, t) => { const buildBodyByFormat = (board, card, notification, actorUser, t) => { const markdownCardLink = `[${escapeMarkdown(card.name)}](${sails.config.custom.baseUrl}/cards/${card.id})`; - const htmlCardLink = `${escapeHtml(card.name)}`; + const htmlCardLink = `${escapeHtml(card.name)}`; switch (notification.type) { case Notification.Types.MOVE_CARD: { @@ -110,8 +110,8 @@ const buildAndSendNotifications = async (services, board, card, notification, ac // TODO: use templates (views) to build html const buildAndSendEmail = async (board, card, notification, actorUser, notifiableUser, t) => { - const cardLink = `${escapeHtml(card.name)}`; - const boardLink = `${escapeHtml(board.name)}`; + const cardLink = `${escapeHtml(card.name)}`; + const boardLink = `${escapeHtml(board.name)}`; let html; switch (notification.type) {