summaryrefslogtreecommitdiff
path: root/bucky
diff options
context:
space:
mode:
Diffstat (limited to 'bucky')
-rw-r--r--bucky/app/bucky.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/bucky/app/bucky.js b/bucky/app/bucky.js
index 5dc7244..9e0d49a 100644
--- a/bucky/app/bucky.js
+++ b/bucky/app/bucky.js
@@ -79,7 +79,10 @@ var bucky = (module.exports = {
]).then(([files, comments]) => {
db.getHootstreamThreads({ files, comments }).then((threads) => {
res.files = files;
- res.comments = comments;
+ res.comments = comments.map((comment) => {
+ comment.set("comment", comment.get("comment").toString());
+ return comment;
+ });
res.threads = threads;
res.threads_ids = res.threads.pluck("id").sort();
res.keywords = _.uniq(res.threads.pluck("keyword"));