diff --git a/builds/4chan-X.user.js b/builds/4chan-X.user.js index e656d3dc9..48ea00c3a 100644 --- a/builds/4chan-X.user.js +++ b/builds/4chan-X.user.js @@ -9503,13 +9503,12 @@ }); this.posts = new RandomAccessList; this.postsQuotingYou = []; - this.qr = QR.db ? function(_arg) { - var ID, board, data, thread; - board = _arg.board, thread = _arg.thread, ID = _arg.ID; + this.qr = QR.db ? function(post) { + var data; data = { - boardID: board.ID, - threadID: thread.ID, - postID: ID + boardID: post.board.ID, + threadID: post.thread.ID, + postID: post.ID }; return (QR.db.get(data) ? true : false); } : function() { diff --git a/builds/crx/script.js b/builds/crx/script.js index 2c30a7514..fb2328d4a 100644 --- a/builds/crx/script.js +++ b/builds/crx/script.js @@ -9486,13 +9486,12 @@ }); this.posts = new RandomAccessList; this.postsQuotingYou = []; - this.qr = QR.db ? function(_arg) { - var ID, board, data, thread; - board = _arg.board, thread = _arg.thread, ID = _arg.ID; + this.qr = QR.db ? function(post) { + var data; data = { - boardID: board.ID, - threadID: thread.ID, - postID: ID + boardID: post.board.ID, + threadID: post.thread.ID, + postID: post.ID }; return (QR.db.get(data) ? true : false); } : function() { diff --git a/src/Monitoring/Unread.coffee b/src/Monitoring/Unread.coffee index 85bdf3903..02c50faf5 100755 --- a/src/Monitoring/Unread.coffee +++ b/src/Monitoring/Unread.coffee @@ -9,11 +9,11 @@ Unread = @postsQuotingYou = [] @qr = if QR.db - ({board, thread, ID}) -> + (post) -> data = - boardID: board.ID - threadID: thread.ID - postID: ID + boardID: post.board.ID + threadID: post.thread.ID + postID: post.ID return (if QR.db.get data then true else false) else -> return false