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
|
### v1.7.60
|
||||||
*2014-06-15*
|
*2014-06-15*
|
||||||
|
|
||||||
|
|||||||
@ -91,7 +91,7 @@ Filter =
|
|||||||
settings
|
settings
|
||||||
|
|
||||||
node: ->
|
node: ->
|
||||||
return if @isClone or !@nodes.root.parentNode
|
return if @isClone or @isFetchedQuote
|
||||||
for key of Filter.filters
|
for key of Filter.filters
|
||||||
value = Filter[key] @
|
value = Filter[key] @
|
||||||
# Continue if there's nothing to filter (no tripcode for example).
|
# Continue if there's nothing to filter (no tripcode for example).
|
||||||
|
|||||||
@ -11,7 +11,7 @@ PostHiding =
|
|||||||
cb: @node
|
cb: @node
|
||||||
|
|
||||||
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 = PostHiding.db.get {boardID: @board.ID, threadID: @thread.ID, postID: @ID}
|
||||||
if data.thisPost
|
if data.thisPost
|
||||||
PostHiding.hide @, data.makeStub, data.hideRecursively
|
PostHiding.hide @, data.makeStub, data.hideRecursively
|
||||||
|
|||||||
@ -8,7 +8,7 @@ Recursive =
|
|||||||
cb: @node
|
cb: @node
|
||||||
|
|
||||||
node: ->
|
node: ->
|
||||||
return if @isClone or !@nodes.root.parentNode
|
return if @isClone or @isFetchedQuote
|
||||||
for quote in @quotes
|
for quote in @quotes
|
||||||
if obj = Recursive.recursives[quote]
|
if obj = Recursive.recursives[quote]
|
||||||
for recursive, i in obj.recursives
|
for recursive, i in obj.recursives
|
||||||
|
|||||||
@ -143,6 +143,7 @@ Get =
|
|||||||
thread = g.threads["#{boardID}.#{threadID}"] or
|
thread = g.threads["#{boardID}.#{threadID}"] or
|
||||||
new Thread threadID, board
|
new Thread threadID, board
|
||||||
post = new Post Build.postFromObject(post, boardID), thread, board
|
post = new Post Build.postFromObject(post, boardID), thread, board
|
||||||
|
post.isFetchedQuote = true
|
||||||
Main.callbackNodes Post, [post]
|
Main.callbackNodes Post, [post]
|
||||||
Get.insert post, root, context
|
Get.insert post, root, context
|
||||||
archivedPost: (req, boardID, postID, root, context) ->
|
archivedPost: (req, boardID, postID, root, context) ->
|
||||||
@ -215,6 +216,7 @@ Get =
|
|||||||
thread = g.threads["#{boardID}.#{threadID}"] or
|
thread = g.threads["#{boardID}.#{threadID}"] or
|
||||||
new Thread threadID, board
|
new Thread threadID, board
|
||||||
post = new Post Build.post(o, true), thread, board, {isArchived: true}
|
post = new Post Build.post(o, true), thread, board, {isArchived: true}
|
||||||
|
post.isFetchedQuote = true
|
||||||
Main.callbackNodes Post, [post]
|
Main.callbackNodes Post, [post]
|
||||||
Get.insert post, root, context
|
Get.insert post, root, context
|
||||||
parseMarkup: (text) ->
|
parseMarkup: (text) ->
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user