Don't hide OPs if we're viewing a thread.

This commit is contained in:
Zixaphir 2015-01-22 08:34:13 -07:00
parent 1da26a6d2a
commit 27aa4e6a16
4 changed files with 10 additions and 3 deletions

View File

@ -1,5 +1,5 @@
/* /*
* appchan x - Version 2.10.4 - 2015-01-21 * appchan x - Version 2.10.4 - 2015-01-22
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE * https://github.com/zixaphir/appchan-x/blob/master/LICENSE

View File

@ -28,7 +28,7 @@
// ==/UserScript== // ==/UserScript==
/* /*
* appchan x - Version 2.10.4 - 2015-01-21 * appchan x - Version 2.10.4 - 2015-01-22
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE * https://github.com/zixaphir/appchan-x/blob/master/LICENSE
@ -7711,6 +7711,9 @@
if (this.isClone || this.isFetchedQuote) { if (this.isClone || this.isFetchedQuote) {
return; return;
} }
if (g.VIEW === 'thread' && !this.isReply) {
return;
}
if (data = PostHiding.db.get({ if (data = PostHiding.db.get({
boardID: this.board.ID, boardID: this.board.ID,
threadID: this.thread.ID, threadID: this.thread.ID,

View File

@ -1,6 +1,6 @@
// Generated by CoffeeScript // Generated by CoffeeScript
/* /*
* appchan x - Version 2.10.4 - 2015-01-21 * appchan x - Version 2.10.4 - 2015-01-22
* *
* Licensed under the MIT license. * Licensed under the MIT license.
* https://github.com/zixaphir/appchan-x/blob/master/LICENSE * https://github.com/zixaphir/appchan-x/blob/master/LICENSE
@ -7752,6 +7752,9 @@
if (this.isClone || this.isFetchedQuote) { if (this.isClone || this.isFetchedQuote) {
return; return;
} }
if (g.VIEW === 'thread' && !this.isReply) {
return;
}
if (data = PostHiding.db.get({ if (data = PostHiding.db.get({
boardID: this.board.ID, boardID: this.board.ID,
threadID: this.thread.ID, threadID: this.thread.ID,

View File

@ -17,6 +17,7 @@ PostHiding =
node: -> node: ->
return if @isClone or @isFetchedQuote return if @isClone or @isFetchedQuote
return if g.VIEW is 'thread' and not @isReply
if data = PostHiding.db.get {boardID: @board.ID, threadID: @thread.ID, postID: @ID} if data = PostHiding.db.get {boardID: @board.ID, threadID: @thread.ID, postID: @ID}
if data.thisPost if data.thisPost