From 49a74fe6e1e48179c9e7888239da7bc652f947f1 Mon Sep 17 00:00:00 2001 From: ccd0 Date: Sun, 25 Sep 2016 06:35:34 -0700 Subject: [PATCH] Fix comments not being moved back to posts when threads are added by infinite scroll. Fixes bug from e45eaea49f775bcb59727e9657e718ac3dcd5421. --- src/General/Index.coffee | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/General/Index.coffee b/src/General/Index.coffee index fe8e1158e..5abf1ae4a 100644 --- a/src/General/Index.coffee +++ b/src/General/Index.coffee @@ -702,9 +702,9 @@ Index = if Conf['Index Mode'] is 'catalog' nodes = Index.buildCatalogViews threads Index.sizeCatalogViews nodes - for thread in threads - thread.OP.setCatalogOP (Conf['Index Mode'] is 'catalog') if Conf['Index Mode'] is 'catalog' + for thread in threads + thread.OP.setCatalogOP true $.add Index.root, nodes if doc.contains Index.root $.event 'PostsInserted' @@ -720,6 +720,7 @@ Index = buildStructure: (threads) -> for thread in threads + thread.OP.setCatalogOP false if (file = thread.OP.file) and (thumb = thread.OP.file.thumb) and thumb.dataset.src thumb.src = thumb.dataset.src # XXX https://bugzilla.mozilla.org/show_bug.cgi?id=1021289