diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2018-03-17 18:45:59 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2018-03-17 18:45:59 +0100 |
| commit | a9c9d59133ed3466740266a13d505cdcc578b853 (patch) | |
| tree | a463955edad0785ef5d326145a8f8d196f938685 /public/assets/js/lib | |
| parent | 555fb6c8d95caa4349922c23818fc9e115226057 (diff) | |
fewer in most recent
Diffstat (limited to 'public/assets/js/lib')
| -rw-r--r-- | public/assets/js/lib/views/index/threadbox.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/public/assets/js/lib/views/index/threadbox.js b/public/assets/js/lib/views/index/threadbox.js index 157b672..c6acc21 100644 --- a/public/assets/js/lib/views/index/threadbox.js +++ b/public/assets/js/lib/views/index/threadbox.js @@ -28,9 +28,9 @@ var ThreadBox = View.extend({ if (this.options.latest) { var latest = data.threads.sort( (a,b) => { return b.lastmodified - a.lastmodified - }).slice(0, 15) + }).slice(0, 7) this.appendThreads(latest) - data.threads = data.threads.slice(15).filter((thread) => thread && !! thread.keyword) + data.threads = data.threads.filter((thread) => thread && !! thread.keyword) } var keywords = {} data.threads.forEach((thread) => { |
