diff options
| author | julian laplace <julescarbon@gmail.com> | 2022-10-26 19:43:54 +0200 |
|---|---|---|
| committer | julian laplace <julescarbon@gmail.com> | 2022-10-26 19:43:54 +0200 |
| commit | bbd5346afed80e8b72e45982c2791680c70d7771 (patch) | |
| tree | c5089b648c8a244c943b7e6d1055a4806346a557 | |
| parent | c2ef8a9874da71e52be515f703e6b563db4e7f30 (diff) | |
show full thread
| -rw-r--r-- | public/assets/js/lib/views/stream/hootstream.js | 5 |
1 files changed, 4 insertions, 1 deletions
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)), }), "<div class='divider'></div>", ]; |
