Fixed commentTag variable.

pull/192/head
ruibaby 2019-06-06 01:01:12 +08:00
parent 109c2e099d
commit bb17d15b25
1 changed files with 1 additions and 1 deletions

View File

@ -34,7 +34,7 @@ public class CommentTagDirective implements TemplateDirectiveModel {
switch (method) { switch (method) {
case "latest": case "latest":
int top = Integer.parseInt(params.get("top").toString()); int top = Integer.parseInt(params.get("top").toString());
env.setVariable("categories", builder.build().wrap(postCommentService.pageLatest(top))); env.setVariable("comments", builder.build().wrap(postCommentService.pageLatest(top)));
break; break;
case "count": case "count":
env.setVariable("count", builder.build().wrap(postCommentService.count())); env.setVariable("count", builder.build().wrap(postCommentService.count()));