Permalink
Browse files

将上下文用于过滤条件

  • Loading branch information...
1 parent cd86fd8 commit 313c6c050e7bdad97af648b27c6a5e08e7b63c4b @JacksonTian committed Nov 11, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 templates/default/section.html
@@ -3,7 +3,7 @@
<ul class="indexs">
<%
var indexs = comments.filter(function (item) {
- return !item.ignore;
+ return !item.ignore && item.ctx;
}).forEach(function (comment) {
comment.ctx.receiver = comment.ctx.receiver || '';
%>
@@ -17,7 +17,7 @@
<hr />
<% for (var i = 0, l = comments.length; i < l; i++) {
var comment = comments[i];
- if (comment.ignore) {
+ if (comment.ignore || !comment.ctx) {
continue;
}
%>

0 comments on commit 313c6c0

Please sign in to comment.