fix recursive hiding bug, this time without breaking other stuff
This commit is contained in:
parent
a13f697488
commit
c740dc0b7d
@ -1,3 +1,6 @@
|
||||
**ccd0**
|
||||
- Fix new hiding/filtering bug from previous release.
|
||||
|
||||
### v1.7.60
|
||||
*2014-06-15*
|
||||
|
||||
|
||||
@ -91,7 +91,7 @@ Filter =
|
||||
settings
|
||||
|
||||
node: ->
|
||||
return if @isClone or !@nodes.root.parentNode
|
||||
return if @isClone or @isFetchedQuote
|
||||
for key of Filter.filters
|
||||
value = Filter[key] @
|
||||
# Continue if there's nothing to filter (no tripcode for example).
|
||||
|
||||
@ -11,7 +11,7 @@ PostHiding =
|
||||
cb: @node
|
||||
|
||||
node: ->
|
||||
return if !@isReply or @isClone or !@nodes.root.parentNode
|
||||
return if !@isReply or @isClone or @isFetchedQuote
|
||||
if data = PostHiding.db.get {boardID: @board.ID, threadID: @thread.ID, postID: @ID}
|
||||
if data.thisPost
|
||||
PostHiding.hide @, data.makeStub, data.hideRecursively
|
||||
|
||||
@ -8,7 +8,7 @@ Recursive =
|
||||
cb: @node
|
||||
|
||||
node: ->
|
||||
return if @isClone or !@nodes.root.parentNode
|
||||
return if @isClone or @isFetchedQuote
|
||||
for quote in @quotes
|
||||
if obj = Recursive.recursives[quote]
|
||||
for recursive, i in obj.recursives
|
||||
|
||||
@ -143,6 +143,7 @@ Get =
|
||||
thread = g.threads["#{boardID}.#{threadID}"] or
|
||||
new Thread threadID, board
|
||||
post = new Post Build.postFromObject(post, boardID), thread, board
|
||||
post.isFetchedQuote = true
|
||||
Main.callbackNodes Post, [post]
|
||||
Get.insert post, root, context
|
||||
archivedPost: (req, boardID, postID, root, context) ->
|
||||
@ -215,6 +216,7 @@ Get =
|
||||
thread = g.threads["#{boardID}.#{threadID}"] or
|
||||
new Thread threadID, board
|
||||
post = new Post Build.post(o, true), thread, board, {isArchived: true}
|
||||
post.isFetchedQuote = true
|
||||
Main.callbackNodes Post, [post]
|
||||
Get.insert post, root, context
|
||||
parseMarkup: (text) ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user