diff options
| author | julian laplace <julescarbon@gmail.com> | 2022-10-25 23:42:03 +0200 |
|---|---|---|
| committer | julian laplace <julescarbon@gmail.com> | 2022-10-25 23:42:03 +0200 |
| commit | adad7bc3a4c205ac85d24824034dfea1f9c7ee3f (patch) | |
| tree | 678df8dbcbf64015085c13c3307552667496eb37 /bucky/app/bucky.js | |
| parent | 92e066ab481130ab6b72c56b2d296b166f8e105e (diff) | |
tostring
Diffstat (limited to 'bucky/app/bucky.js')
| -rw-r--r-- | bucky/app/bucky.js | 5 |
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")); |
