mirror of https://github.com/halo-dev/halo
feat: add more parameters in mail template. (#2095)
* Fixed the bug of not being able to query according to the content The content table is associated at query time now. * Update static file mappings on refresh * feat:add more parameter in mail template * Update CommentEventListener.java * Update CommentEventListener.java * Update CommentEventListener.javapull/2098/head
parent
46220a9286
commit
8390752149
|
@ -126,6 +126,10 @@ public class CommentEventListener {
|
||||||
data.put("pageTitle", post.getTitle());
|
data.put("pageTitle", post.getTitle());
|
||||||
data.put("author", postComment.getAuthor());
|
data.put("author", postComment.getAuthor());
|
||||||
data.put("content", postComment.getContent());
|
data.put("content", postComment.getContent());
|
||||||
|
data.put("email", postComment.getEmail());
|
||||||
|
data.put("status", postComment.getStatus());
|
||||||
|
data.put("createTime", postComment.getCreateTime());
|
||||||
|
data.put("authorUrl", postComment.getAuthorUrl());
|
||||||
|
|
||||||
subject.append("您的博客文章《")
|
subject.append("您的博客文章《")
|
||||||
.append(post.getTitle())
|
.append(post.getTitle())
|
||||||
|
@ -144,6 +148,10 @@ public class CommentEventListener {
|
||||||
data.put("pageTitle", sheet.getTitle());
|
data.put("pageTitle", sheet.getTitle());
|
||||||
data.put("author", sheetComment.getAuthor());
|
data.put("author", sheetComment.getAuthor());
|
||||||
data.put("content", sheetComment.getContent());
|
data.put("content", sheetComment.getContent());
|
||||||
|
data.put("email", sheetComment.getEmail());
|
||||||
|
data.put("status", sheetComment.getStatus());
|
||||||
|
data.put("createTime", sheetComment.getCreateTime());
|
||||||
|
data.put("authorUrl", sheetComment.getAuthorUrl());
|
||||||
|
|
||||||
subject.append("您的博客页面《")
|
subject.append("您的博客页面《")
|
||||||
.append(sheet.getTitle())
|
.append(sheet.getTitle())
|
||||||
|
@ -162,6 +170,10 @@ public class CommentEventListener {
|
||||||
data.put("pageTitle", journal.getCreateTime());
|
data.put("pageTitle", journal.getCreateTime());
|
||||||
data.put("author", journalComment.getAuthor());
|
data.put("author", journalComment.getAuthor());
|
||||||
data.put("content", journalComment.getContent());
|
data.put("content", journalComment.getContent());
|
||||||
|
data.put("email", journalComment.getEmail());
|
||||||
|
data.put("status", journalComment.getStatus());
|
||||||
|
data.put("createTime", journalComment.getCreateTime());
|
||||||
|
data.put("authorUrl", journalComment.getAuthorUrl());
|
||||||
|
|
||||||
subject.append("您的博客日志有了新的评论");
|
subject.append("您的博客日志有了新的评论");
|
||||||
}
|
}
|
||||||
|
@ -230,6 +242,10 @@ public class CommentEventListener {
|
||||||
data.put("baseContent", baseComment.getContent());
|
data.put("baseContent", baseComment.getContent());
|
||||||
data.put("replyAuthor", postComment.getAuthor());
|
data.put("replyAuthor", postComment.getAuthor());
|
||||||
data.put("replyContent", postComment.getContent());
|
data.put("replyContent", postComment.getContent());
|
||||||
|
data.put("baseAuthorEmail", baseComment.getEmail());
|
||||||
|
data.put("replyAuthorEmail", postComment.getEmail());
|
||||||
|
data.put("createTime", postComment.getCreateTime());
|
||||||
|
data.put("authorUrl", postComment.getAuthorUrl());
|
||||||
|
|
||||||
subject.append("您在【")
|
subject.append("您在【")
|
||||||
.append(blogTitle)
|
.append(blogTitle)
|
||||||
|
@ -263,6 +279,10 @@ public class CommentEventListener {
|
||||||
data.put("baseContent", baseComment.getContent());
|
data.put("baseContent", baseComment.getContent());
|
||||||
data.put("replyAuthor", sheetComment.getAuthor());
|
data.put("replyAuthor", sheetComment.getAuthor());
|
||||||
data.put("replyContent", sheetComment.getContent());
|
data.put("replyContent", sheetComment.getContent());
|
||||||
|
data.put("baseAuthorEmail", baseComment.getEmail());
|
||||||
|
data.put("replyAuthorEmail", sheetComment.getEmail());
|
||||||
|
data.put("createTime", sheetComment.getCreateTime());
|
||||||
|
data.put("authorUrl", sheetComment.getAuthorUrl());
|
||||||
|
|
||||||
subject.append("您在【")
|
subject.append("您在【")
|
||||||
.append(blogTitle)
|
.append(blogTitle)
|
||||||
|
@ -298,6 +318,10 @@ public class CommentEventListener {
|
||||||
data.put("baseContent", baseComment.getContent());
|
data.put("baseContent", baseComment.getContent());
|
||||||
data.put("replyAuthor", journalComment.getAuthor());
|
data.put("replyAuthor", journalComment.getAuthor());
|
||||||
data.put("replyContent", journalComment.getContent());
|
data.put("replyContent", journalComment.getContent());
|
||||||
|
data.put("baseAuthorEmail", baseComment.getEmail());
|
||||||
|
data.put("replyAuthorEmail", journalComment.getEmail());
|
||||||
|
data.put("createTime", journalComment.getCreateTime());
|
||||||
|
data.put("authorUrl", journalComment.getAuthorUrl());
|
||||||
|
|
||||||
subject.append("您在【")
|
subject.append("您在【")
|
||||||
.append(blogTitle)
|
.append(blogTitle)
|
||||||
|
|
Loading…
Reference in New Issue