From 357f943b7f5c59fec08a3180cda0622b5fd88950 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Sun, 10 Mar 2013 02:25:46 +0100 Subject: [PATCH] Don't add the line in newly opened threads. #932 --- 4chan_x.user.js | 6 +++--- src/features.coffee | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index e938969d3..9bc620ac7 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -20,7 +20,7 @@ // @icon data:image/gif;base64,R0lGODlhEAAQAKECAAAAAGbMM////////yH5BAEKAAIALAAAAAAQABAAAAIxlI+pq+D9DAgUoFkPDlbs7lGiI2bSVnKglnJMOL6omczxVZK3dH/41AG6Lh7i6qUoAAA7 // ==/UserScript== -/* 4chan X Beta - Version 3.0.0 - 2013-03-09 +/* 4chan X Beta - Version 3.0.0 - 2013-03-10 * http://mayhemydg.github.com/4chan-x/ * * Copyright (c) 2009-2011 James Campos @@ -5216,9 +5216,9 @@ Unread.addPostQuotingYou(post, yourPosts); } } + Unread.setLine((_ref = Unread.posts[0], __indexOf.call(newPosts, _ref) >= 0)); Unread.read(); - Unread.update(); - return Unread.setLine((_ref = Unread.posts[0], __indexOf.call(newPosts, _ref) >= 0)); + return Unread.update(); }, addPostQuotingYou: function(post, yourPosts) { var board, postIDs, quote, quoteID, thread, _i, _len, _ref, _ref1, _ref2; diff --git a/src/features.coffee b/src/features.coffee index b5e880733..eac761b00 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -3482,10 +3482,10 @@ Unread = continue Unread.posts.push post Unread.addPostQuotingYou post, yourPosts if yourPosts - Unread.read() - Unread.update() # Force line on visible threads if there were no unread posts previously. Unread.setLine Unread.posts[0] in newPosts + Unread.read() + Unread.update() addPostQuotingYou: (post, yourPosts) -> for quote in post.quotes