From ef844ccd73b10b64b9eb489f190229396f9c1a9b Mon Sep 17 00:00:00 2001 From: ccd0 Date: Thu, 28 Apr 2016 09:35:00 -0700 Subject: [PATCH] Fix the post building test breaking everything. --- src/General/Build.Test.coffee | 4 +--- src/classes/Post.coffee | 3 +++ 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/General/Build.Test.coffee b/src/General/Build.Test.coffee index d7d0a13bc..041659866 100644 --- a/src/General/Build.Test.coffee +++ b/src/General/Build.Test.coffee @@ -42,7 +42,7 @@ Build.Test = root = Build.post obj t2 = new Date().getTime() Build.Test.time += t2 - t1 - post2 = new Post root, post.thread, post.board + post2 = new Post root, post.thread, post.board, 'forBuildTest' fail = false x = post.normalizedOriginal @@ -71,8 +71,6 @@ Build.Test = c.log "#{post.fullID} correct" Build.Test.postsRemaining-- Build.Test.report() if Build.Test.postsRemaining is 0 - post2.isFetchedQuote = true - Main.callbackNodes 'Post', [post2] testAll: -> g.posts.forEach (post) -> diff --git a/src/classes/Post.coffee b/src/classes/Post.coffee index d9efc7e99..7d694e9a1 100644 --- a/src/classes/Post.coffee +++ b/src/classes/Post.coffee @@ -102,6 +102,9 @@ class Post @isHidden = false @clones = [] + <% if (readJSON('/.tests_enabled')) { %> + return if arguments[3] is 'forBuildTest' + <% } %> if g.posts[@fullID] @isRebuilt = true @clones = g.posts[@fullID].clones