summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorjulian laplace <julescarbon@gmail.com>2022-10-26 19:43:54 +0200
committerjulian laplace <julescarbon@gmail.com>2022-10-26 19:43:54 +0200
commitbbd5346afed80e8b72e45982c2791680c70d7771 (patch)
treec5089b648c8a244c943b7e6d1055a4806346a557 /public
parentc2ef8a9874da71e52be515f703e6b563db4e7f30 (diff)
show full thread
Diffstat (limited to 'public')
-rw-r--r--public/assets/js/lib/views/stream/hootstream.js5
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>",
];