Commit fbedec1b authored by 刘基明's avatar 刘基明

Merge branch 'v2.3.1' into 'dev'

露出评论数量《3》

See merge request !78
parents 192d1954 7756d0d9
...@@ -215,7 +215,7 @@ public class CommentService { ...@@ -215,7 +215,7 @@ public class CommentService {
for (ThemeQo theme : themes) { for (ThemeQo theme : themes) {
if (collect.containsKey(theme.getThemeId())) { if (collect.containsKey(theme.getThemeId())) {
List<CommentEntity> comments = collect.get(theme.getThemeId()); List<CommentEntity> comments = collect.get(theme.getThemeId());
theme.setRecentComments(ConvertUtil.comment2Simple(comments, nameMap)); theme.setRecentComments(ConvertUtil.comment2Simple(comments.subList(0,Math.min(comments.size(),3)), nameMap));
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment