It occurs to me you can't disable our Quick Reply.
This commit is contained in:
parent
51c41f563c
commit
ef34200fdb
@ -9486,17 +9486,6 @@
|
||||
});
|
||||
this.posts = new RandomAccessList;
|
||||
this.postsQuotingYou = [];
|
||||
this.qr = QR.db ? function(post) {
|
||||
var data;
|
||||
data = {
|
||||
boardID: post.board.ID,
|
||||
threadID: post.thread.ID,
|
||||
postID: post.ID
|
||||
};
|
||||
return (QR.db.get(data) ? true : false);
|
||||
} : function() {
|
||||
return false;
|
||||
};
|
||||
return Thread.callbacks.push({
|
||||
name: 'Unread',
|
||||
cb: this.node
|
||||
@ -9589,7 +9578,11 @@
|
||||
for (_i = 0, _len = posts.length; _i < _len; _i++) {
|
||||
post = posts[_i];
|
||||
ID = post.ID;
|
||||
if (ID <= Unread.lastReadPost || post.isHidden || Unread.qr(post)) {
|
||||
if (ID <= Unread.lastReadPost || post.isHidden || QR.db.get({
|
||||
boardID: post.board.ID,
|
||||
threadID: post.thread.ID,
|
||||
postID: post.ID
|
||||
})) {
|
||||
continue;
|
||||
}
|
||||
if (!(post.prev || post.next)) {
|
||||
|
||||
@ -9469,17 +9469,6 @@
|
||||
});
|
||||
this.posts = new RandomAccessList;
|
||||
this.postsQuotingYou = [];
|
||||
this.qr = QR.db ? function(post) {
|
||||
var data;
|
||||
data = {
|
||||
boardID: post.board.ID,
|
||||
threadID: post.thread.ID,
|
||||
postID: post.ID
|
||||
};
|
||||
return (QR.db.get(data) ? true : false);
|
||||
} : function() {
|
||||
return false;
|
||||
};
|
||||
return Thread.callbacks.push({
|
||||
name: 'Unread',
|
||||
cb: this.node
|
||||
@ -9572,7 +9561,11 @@
|
||||
for (_i = 0, _len = posts.length; _i < _len; _i++) {
|
||||
post = posts[_i];
|
||||
ID = post.ID;
|
||||
if (ID <= Unread.lastReadPost || post.isHidden || Unread.qr(post)) {
|
||||
if (ID <= Unread.lastReadPost || post.isHidden || QR.db.get({
|
||||
boardID: post.board.ID,
|
||||
threadID: post.thread.ID,
|
||||
postID: post.ID
|
||||
})) {
|
||||
continue;
|
||||
}
|
||||
if (!(post.prev || post.next)) {
|
||||
|
||||
@ -8,16 +8,6 @@ Unread =
|
||||
@posts = new RandomAccessList
|
||||
@postsQuotingYou = []
|
||||
|
||||
@qr = if QR.db
|
||||
(post) ->
|
||||
data =
|
||||
boardID: post.board.ID
|
||||
threadID: post.thread.ID
|
||||
postID: post.ID
|
||||
return (if QR.db.get data then true else false)
|
||||
else ->
|
||||
return false
|
||||
|
||||
Thread.callbacks.push
|
||||
name: 'Unread'
|
||||
cb: @node
|
||||
@ -80,7 +70,11 @@ Unread =
|
||||
addPosts: (posts) ->
|
||||
for post in posts
|
||||
{ID} = post
|
||||
continue if ID <= Unread.lastReadPost or post.isHidden or Unread.qr post
|
||||
continue if ID <= Unread.lastReadPost or post.isHidden or QR.db.get {
|
||||
boardID: post.board.ID
|
||||
threadID: post.thread.ID
|
||||
postID: post.ID
|
||||
}
|
||||
Unread.posts.push post unless post.prev or post.next
|
||||
Unread.addPostQuotingYou post
|
||||
if Conf['Unread Line']
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user