From f4997fa40a2f13a7e63df063f47336daf5eafb91 Mon Sep 17 00:00:00 2001 From: guqing Date: Thu, 21 Sep 2023 17:58:05 +0800 Subject: [PATCH] chore: update email footer --- .../java/run/halo/app/notification/EmailNotifier.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/src/main/java/run/halo/app/notification/EmailNotifier.java b/application/src/main/java/run/halo/app/notification/EmailNotifier.java index 7fac4fb804..8811b42159 100644 --- a/application/src/main/java/run/halo/app/notification/EmailNotifier.java +++ b/application/src/main/java/run/halo/app/notification/EmailNotifier.java @@ -58,14 +58,14 @@ public Mono notify(NotificationContext context) { } var htmlMono = appendHtmlBodyFooter(payload.getAttributes()) .doOnNext(footer -> { - if (StringUtils.isNotBlank(payload.getRawBody())) { - payload.setHtmlBody(payload.getHtmlBody() + footer); + if (StringUtils.isNotBlank(payload.getHtmlBody())) { + payload.setHtmlBody(payload.getHtmlBody() + "\n" + footer); } }); var rawMono = appendRawBodyFooter(payload.getAttributes()) .doOnNext(footer -> { - if (StringUtils.isNotBlank(payload.getHtmlBody())) { - payload.setRawBody(payload.getRawBody() + footer); + if (StringUtils.isNotBlank(payload.getRawBody())) { + payload.setRawBody(payload.getRawBody() + "\n" + footer); } }); return Mono.when(htmlMono, rawMono)