From 35b9318fbf27f4025dd50be2c0a59046dfab3baf Mon Sep 17 00:00:00 2001 From: julian laplace Date: Thu, 27 Oct 2022 22:03:49 +0200 Subject: hootform styling and fixing --- public/assets/js/lib/views/stream/index.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'public/assets/js/lib/views/stream/index.js') 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); }, -- cgit v1.2.3-70-g09d2