From 6fb54490c2dd711fed961cb2ec860de2b709e717 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 20 Apr 2014 00:40:10 -0700 Subject: [PATCH] fix bug in quote threading --- src/Quotelinks/QuoteThreading.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Quotelinks/QuoteThreading.coffee b/src/Quotelinks/QuoteThreading.coffee index 7b77a13a3..2ac2d695f 100755 --- a/src/Quotelinks/QuoteThreading.coffee +++ b/src/Quotelinks/QuoteThreading.coffee @@ -97,7 +97,7 @@ QuoteThreading = if post = posts[post.ID] posts.after post, posts[@ID] - else + else if posts[@ID] posts.prepend posts[@ID] return true @@ -128,4 +128,4 @@ QuoteThreading = kb: -> control = $.id 'threadingControl' control.checked = not control.checked - QuoteThreading.toggle.call control \ No newline at end of file + QuoteThreading.toggle.call control