Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo-1
Commits
8d19f6e5
Unverified
Commit
8d19f6e5
authored
Oct 23, 2018
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
✨
Fix #12558
parent
dd408a22
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
18 deletions
+18
-18
src/main/java/org/b3log/solo/event/ArticleCommentReplyNotifier.java
...ava/org/b3log/solo/event/ArticleCommentReplyNotifier.java
+18
-18
No files found.
src/main/java/org/b3log/solo/event/ArticleCommentReplyNotifier.java
View file @
8d19f6e5
...
@@ -43,7 +43,7 @@ import org.json.JSONObject;
...
@@ -43,7 +43,7 @@ import org.json.JSONObject;
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://www.wanglay.com">Lei Wang</a>
* @author <a href="http://www.wanglay.com">Lei Wang</a>
* @version 1.2.2.1
1, Sep 25
, 2018
* @version 1.2.2.1
2, Oct 23
, 2018
* @since 0.3.1
* @since 0.3.1
*/
*/
@Singleton
@Singleton
...
@@ -129,27 +129,27 @@ public class ArticleCommentReplyNotifier extends AbstractEventListener<JSONObjec
...
@@ -129,27 +129,27 @@ public class ArticleCommentReplyNotifier extends AbstractEventListener<JSONObjec
commenter
=
commentName
;
commenter
=
commentName
;
}
}
final
String
mailSubject
=
replyNotificationTemplate
.
getString
(
final
String
mailSubject
=
replyNotificationTemplate
.
getString
(
"subject"
).
replace
(
"${postLink}"
,
articleLink
)
"subject"
).
replace
(
"${postLink}"
,
articleLink
)
.
.
replace
(
"${postTitle}"
,
articleTitle
)
replace
(
"${postTitle}"
,
articleTitle
).
.
replace
(
"${replier}"
,
commenter
)
replace
(
"${replier}"
,
commenter
).
.
replace
(
"${blogTitle}"
,
blogTitle
)
replace
(
"${blogTitle}"
,
blogTitle
).
.
replace
(
"${replyURL}"
,
replace
(
"${replyURL}"
,
Latkes
.
getServePath
()
+
commentSharpURL
).
Latkes
.
getServePath
()
+
commentSharpURL
)
replace
(
"${replyContent}"
,
commentContent
).
.
replace
(
"${replyContent}"
,
commentContent
);
replace
(
"${servePath}"
,
Latkes
.
getServePath
()
);
message
.
setSubject
(
mailSubject
);
message
.
setSubject
(
mailSubject
);
final
String
mailBody
=
replyNotificationTemplate
final
String
mailBody
=
replyNotificationTemplate
.
.
getString
(
"body"
)
getString
(
"body"
).
.
replace
(
"${postLink}"
,
articleLink
)
replace
(
"${postLink}"
,
articleLink
).
.
replace
(
"${postTitle}"
,
articleTitle
)
replace
(
"${postTitle}"
,
articleTitle
).
.
replace
(
"${replier}"
,
commenter
)
replace
(
"${replier}"
,
commenter
).
.
replace
(
"${blogTitle}"
,
blogTitle
)
replace
(
"${blogTitle}"
,
blogTitle
).
.
replace
(
"${replyURL}"
,
replace
(
"${replyURL}"
,
Latkes
.
getServePath
()
+
commentSharpURL
).
Latkes
.
getServePath
()
+
commentSharpURL
)
replace
(
"${replyContent}"
,
commentContent
).
.
replace
(
"${replyContent}"
,
commentContent
);
replace
(
"${servePath}"
,
Latkes
.
getServePath
()
);
message
.
setHtmlBody
(
mailBody
);
message
.
setHtmlBody
(
mailBody
);
LOGGER
.
log
(
Level
.
DEBUG
,
"Sending a mail[mailSubject={0}, mailBody=[{1}] to [{2}]"
,
LOGGER
.
log
(
Level
.
DEBUG
,
"Sending a mail
[mailSubject={0}, mailBody=[{1}] to [{2}]"
,
mailSubject
,
mailBody
,
originalCommentEmail
);
mailSubject
,
mailBody
,
originalCommentEmail
);
mailService
.
send
(
message
);
mailService
.
send
(
message
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment