diff options
Diffstat (limited to 'public/assets/js/lib/views/stream')
| -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>", ]; |
