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