From bbd5346afed80e8b72e45982c2791680c70d7771 Mon Sep 17 00:00:00 2001 From: julian laplace Date: Wed, 26 Oct 2022 19:43:54 +0200 Subject: show full thread --- public/assets/js/lib/views/stream/hootstream.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'public') diff --git a/public/assets/js/lib/views/stream/hootstream.js b/public/assets/js/lib/views/stream/hootstream.js index e4bee0b..f987e3f 100644 --- a/public/assets/js/lib/views/stream/hootstream.js +++ b/public/assets/js/lib/views/stream/hootstream.js @@ -157,7 +157,10 @@ var HootStream = View.extend({ tag: "first_post", }), ...this.renderHoots({ - hoots: postedToday ? comments.slice(1) : comments.slice(1).slice(-5), + hoots: + isViewingThread || postedToday + ? comments.slice(1) + : comments.slice(1).slice(-5).map(trimComment(isViewingThread)), }), "
", ]; -- cgit v1.2.3-70-g09d2