diff --git a/4chan_x.user.js b/4chan_x.user.js index 9971dc82a..e41c46b49 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -5804,7 +5804,7 @@ } else if (!index.contains(ID)) { post.kill(); deletedPosts.push(post); - } else if (post.file && !post.file.isDead && files.contains(ID)) { + } else if (post.file && !post.file.isDead && !files.contains(ID)) { post.kill(true); deletedFiles.push(post); } diff --git a/src/features.coffee b/src/features.coffee index 5b5f9e5b3..5a10a3de0 100644 --- a/src/features.coffee +++ b/src/features.coffee @@ -3954,7 +3954,7 @@ ThreadUpdater = else unless index.contains ID post.kill() deletedPosts.push post - else if post.file and !post.file.isDead and files.contains ID + else if post.file and !post.file.isDead and not files.contains ID post.kill true deletedFiles.push post