Don't collect posts someone is quoting.

This commit is contained in:
ccd0 2016-10-02 20:08:41 -07:00
parent 9ed360094f
commit 3b9a79647f

View File

@ -75,6 +75,12 @@ class Thread
@isDead = true @isDead = true
collect: -> collect: ->
@posts.forEach (post) -> post.collect() n = 0
g.threads.rm @fullID @posts.forEach (post) ->
@board.threads.rm @ if post.clones.length
n++
else
post.collect()
unless n
g.threads.rm @fullID
@board.threads.rm @