Fixed bug causing duplicate display of replies. (No clue how this slipped in.)
This commit is contained in:
parent
4ecc50937f
commit
eab69cd022
2 changed files with 2 additions and 2 deletions
|
@ -476,7 +476,7 @@ Story.prototype.comments_macro = function(param, mode) {
|
||||||
html.link({href: this.href() + "#comments"}, text);
|
html.link({href: this.href() + "#comments"}, text);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.comments.prefetchChildren();
|
this.prefetchChildren();
|
||||||
this.forEach(function() {
|
this.forEach(function() {
|
||||||
html.openTag("a", {name: this._id});
|
html.openTag("a", {name: this._id});
|
||||||
html.closeTag("a");
|
html.closeTag("a");
|
||||||
|
|
|
@ -59,7 +59,7 @@ modifier.foreign = id
|
||||||
|
|
||||||
_children = collection(Comment)
|
_children = collection(Comment)
|
||||||
_children.local = id
|
_children.local = id
|
||||||
_children.foreign = story_id
|
_children.foreign = parent_id
|
||||||
_children.order = created asc
|
_children.order = created asc
|
||||||
_children.filter = parent_type = 'Story'
|
_children.filter = parent_type = 'Story'
|
||||||
_children.cachemode = aggressive
|
_children.cachemode = aggressive
|
||||||
|
|
Loading…
Add table
Reference in a new issue