diff options
| -rw-r--r-- | public/assets/js/lib/views/index/hootbox.js | 1 | ||||
| -rw-r--r-- | public/assets/js/util/format.js | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/public/assets/js/lib/views/index/hootbox.js b/public/assets/js/lib/views/index/hootbox.js index a5d2270..c874e74 100644 --- a/public/assets/js/lib/views/index/hootbox.js +++ b/public/assets/js/lib/views/index/hootbox.js @@ -29,6 +29,7 @@ var HootBox = FormView.extend({ }, parse: function (comment) { + console.log(comment); var t = this.template .replace(/{{image}}/g, profile_image(comment.username)) .replace(/{{username}}/g, comment.username) diff --git a/public/assets/js/util/format.js b/public/assets/js/util/format.js index 41d652a..416777b 100644 --- a/public/assets/js/util/format.js +++ b/public/assets/js/util/format.js @@ -334,7 +334,7 @@ function trimComment({ isViewingThread, lines, snippetSize, cropSize }) { } function tidy_urls(s, short_urls) { - var ret = s + var ret = (s || "") .split("\n") .map(function (line) { if (line.indexOf("<") !== -1) { |
