From 2503ffaad82cc6a8fd18b3af190ceed27306ee6f Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sat, 29 Oct 2016 16:42:40 -0700 Subject: [PATCH] Remove inlined posts before parsing clone. #1133 --- src/classes/Post.Clone.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/classes/Post.Clone.coffee b/src/classes/Post.Clone.coffee index 9eafe6422..154348b62 100644 --- a/src/classes/Post.Clone.coffee +++ b/src/classes/Post.Clone.coffee @@ -16,14 +16,14 @@ Post.Clone = class extends Post node.id = Post.Clone.prefix + node.id Post.Clone.prefix++ - @nodes = @parseNodes root - # Remove inlined posts inside of this post. - for inline in $$ '.inline', @nodes.post + for inline in $$ '.inline', root $.rm inline - for inlined in $$ '.inlined', @nodes.post + for inlined in $$ '.inlined', root $.rmClass inlined, 'inlined' + @nodes = @parseNodes root + root.hidden = false # post hiding $.rmClass root, 'forwarded' # quote inlining $.rmClass @nodes.post, 'highlight' # keybind navigation, ID highlighting