diff --git a/builds/appchan-x.user.js b/builds/appchan-x.user.js index 009a77576..3503a81ce 100644 --- a/builds/appchan-x.user.js +++ b/builds/appchan-x.user.js @@ -5946,9 +5946,9 @@ threadExcerpt: function(thread) { var OP, excerpt, _ref; OP = thread.OP; - excerpt = ("/" + thread.board + "/ - ") + (((_ref = OP.info.subject) != null ? _ref.trim() : void 0) || OP.info.comment.replace(/\n+/g, ' // ') || OP.getNameBlock()); - if (excerpt.length > 73) { - excerpt = "" + excerpt.slice(0, 70) + "..."; + excerpt = ((_ref = OP.info.subject) != null ? _ref.trim() : void 0) || OP.info.comment.replace(/\n+/g, ' // ') || OP.getNameBlock(); + if (excerpt.length > 70) { + excerpt = "" + excerpt.slice(0, 67) + "..."; } return "/" + thread.board + "/ - " + excerpt; }, diff --git a/builds/crx/script.js b/builds/crx/script.js index be923a260..f6172d85b 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -6005,9 +6005,9 @@ threadExcerpt: function(thread) { var OP, excerpt, _ref; OP = thread.OP; - excerpt = ("/" + thread.board + "/ - ") + (((_ref = OP.info.subject) != null ? _ref.trim() : void 0) || OP.info.comment.replace(/\n+/g, ' // ') || OP.getNameBlock()); - if (excerpt.length > 73) { - excerpt = "" + excerpt.slice(0, 70) + "..."; + excerpt = ((_ref = OP.info.subject) != null ? _ref.trim() : void 0) || OP.info.comment.replace(/\n+/g, ' // ') || OP.getNameBlock(); + if (excerpt.length > 70) { + excerpt = "" + excerpt.slice(0, 67) + "..."; } return "/" + thread.board + "/ - " + excerpt; }, diff --git a/src/General/Get.coffee b/src/General/Get.coffee index 70932fbda..d8176a7ee 100755 --- a/src/General/Get.coffee +++ b/src/General/Get.coffee @@ -1,13 +1,11 @@ Get = threadExcerpt: (thread) -> {OP} = thread - excerpt = "/#{thread.board}/ - " + ( - OP.info.subject?.trim() or + excerpt = OP.info.subject?.trim() or OP.info.comment.replace(/\n+/g, ' // ') or OP.getNameBlock() - ) - if excerpt.length > 73 - excerpt = "#{excerpt[...70]}..." + if excerpt.length > 70 + excerpt = "#{excerpt[...67]}..." "/#{thread.board}/ - #{excerpt}" threadFromRoot: (root) -> g.threads["#{g.BOARD}.#{root.id[1..]}"]