aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/emailer.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-04-15 14:19:07 +0200
committerChocobozzz <me@florianbigard.com>2022-04-15 14:19:07 +0200
commit3c7ddd7daa61d35c6fd0a992389a92599a246779 (patch)
tree779fde7a19a5bd5e527e14a532a377c16d557082 /server/lib/emailer.ts
parentec2fa0d0b1d290f6c8de257fa7f1e2e3f28b8dfa (diff)
downloadPeerTube-3c7ddd7daa61d35c6fd0a992389a92599a246779.tar.gz
PeerTube-3c7ddd7daa61d35c6fd0a992389a92599a246779.tar.zst
PeerTube-3c7ddd7daa61d35c6fd0a992389a92599a246779.zip
Fix email links displayed twice as text
Diffstat (limited to 'server/lib/emailer.ts')
-rw-r--r--server/lib/emailer.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/lib/emailer.ts b/server/lib/emailer.ts
index ebad43650..fe5668881 100644
--- a/server/lib/emailer.ts
+++ b/server/lib/emailer.ts
@@ -141,6 +141,12 @@ class Emailer {
141 141
142 const email = new Email({ 142 const email = new Email({
143 send: true, 143 send: true,
144 htmlToText: {
145 selectors: [
146 { selector: 'img', format: 'skip' },
147 { selector: 'a', options: { ignoreHref: true } }
148 ]
149 },
144 message: { 150 message: {
145 from: `"${fromDisplayName}" <${CONFIG.SMTP.FROM_ADDRESS}>` 151 from: `"${fromDisplayName}" <${CONFIG.SMTP.FROM_ADDRESS}>`
146 }, 152 },