summaryrefslogtreecommitdiff
path: root/public/assets/js/lib/views/index
diff options
context:
space:
mode:
Diffstat (limited to 'public/assets/js/lib/views/index')
-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)