summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/index/threadbox.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2017-12-27 10:02:57 +0100
committerJules Laplace <julescarbon@gmail.com>2017-12-27 10:02:57 +0100
commitab5edf33460292721161d90031472132318904d3 (patch)
tree326b45f53e6f25d73d83c10943c413737e7bdf61 /public/assets/js/lib/views/index/threadbox.js
parentb6777c92daf6e2becfb0efb3316a05885ce18109 (diff)
checks
Diffstat (limited to 'public/assets/js/lib/views/index/threadbox.js')
-rw-r--r--public/assets/js/lib/views/index/threadbox.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/public/assets/js/lib/views/index/threadbox.js b/public/assets/js/lib/views/index/threadbox.js
index 4ecb919..70dc961 100644
--- a/public/assets/js/lib/views/index/threadbox.js
+++ b/public/assets/js/lib/views/index/threadbox.js
@@ -48,11 +48,10 @@ var ThreadBox = View.extend({
},
parse: function(thread){
- if (thread.comment_count === undefined) return ""
var views = hush_views(thread.viewed)
var size = hush_size(thread.size)
- var comments = hush_null(thread.comment_count, "c")
- var files = hush_null(thread.file_count, "f")
+ var comments = hush_null(thread.comment_count || 0, "c")
+ var files = hush_null(thread.file_count || 0, "f")
var dot = privacy_dot(thread.privacy)
var datetime = verbose_date(thread.lastmodified)
var age = get_age(thread.lastmodified)