From adad7bc3a4c205ac85d24824034dfea1f9c7ee3f Mon Sep 17 00:00:00 2001 From: julian laplace Date: Tue, 25 Oct 2022 23:42:03 +0200 Subject: tostring --- bucky/app/bucky.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bucky') 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")); -- cgit v1.2.3-70-g09d2