Skip to content

Commit

Permalink
支持使用redis缓存文章,优化速度。
Browse files Browse the repository at this point in the history
  • Loading branch information
zeekling committed May 13, 2023
1 parent e83da45 commit 355f9c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ public JSONObject addArticleComment(final JSONObject requestJSONObject) throws S
ret.put(Common.COMMENTABLE, preference.getBoolean(Option.ID_C_COMMENTABLE) && article.getBoolean(Article.ARTICLE_COMMENTABLE));
ret.put(Common.PERMALINK, article.getString(Article.ARTICLE_PERMALINK));
ret.put(Comment.COMMENT_NAME, commentName);
String cmtContent = Markdowns.toHTML(commentContent, "comment_" + commentName + "_" + articleId);
String cmtContent = Markdowns.toHTML(commentContent);
cmtContent = Markdowns.clean(cmtContent);
ret.put(Comment.COMMENT_CONTENT, cmtContent);
ret.put(Comment.COMMENT_URL, commentURL);
Expand Down

0 comments on commit 355f9c1

Please sign in to comment.