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) {