diff options
Diffstat (limited to 'public/assets/js/lib/views/stream/index.js')
| -rw-r--r-- | public/assets/js/lib/views/stream/index.js | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/public/assets/js/lib/views/stream/index.js b/public/assets/js/lib/views/stream/index.js index 1504554..0a2aeb9 100644 --- a/public/assets/js/lib/views/stream/index.js +++ b/public/assets/js/lib/views/stream/index.js @@ -42,8 +42,11 @@ var StreamView = View.extend({ }, onComment: function (comment) { - this.data.hootbox.comments.push(comment); - this.data.hootstream.comments.push(comment); + if (comment.thread === 1) { + this.data.hootbox.push(comment); + } else { + this.data.comments.push(comment); + } this.populate(this.data); }, |
