Skip to content

Commit

Permalink
🦄 fix reply comment admin email is null
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Feb 27, 2017
1 parent 2ffe414 commit 1cb6a55
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,11 @@ public RestResponse reply(@QueryParam Integer coid, @QueryParam String content,
comments.setIp(request.address());
comments.setUrl(users.getHome_url());
comments.setContent(content);
comments.setMail(users.getEmail());
if(StringKit.isNotBlank(users.getEmail())){
comments.setMail(users.getEmail());
} else {
comments.setMail("[email protected]");
}
comments.setParent(coid);
try {
commentsService.saveComment(comments);
Expand Down

0 comments on commit 1cb6a55

Please sign in to comment.