fix bug where posts inserted by quote inlining/preview triggered recursive hiding
This commit is contained in:
parent
bd026cdcb7
commit
572d54e0bb
@ -91,7 +91,7 @@ Filter =
|
|||||||
settings
|
settings
|
||||||
|
|
||||||
node: ->
|
node: ->
|
||||||
return if @isClone
|
return if @isClone or !@nodes.root.parentNode
|
||||||
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
|
return if !@isReply or @isClone or !@nodes.root.parentNode
|
||||||
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
|
return if @isClone or !@nodes.root.parentNode
|
||||||
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user