Skip to content

A platform for community discussion. Free, open, simple.

DEV: Remove redundant line of code (#22734)

Alan Guo Xiang Tan1f2213414a94
diff --git a/lib/post_destroyer.rb b/lib/post_destroyer.rb
index 0311cfaea40..d8f67083e40 100644
--- a/lib/post_destroyer.rb
+++ b/lib/post_destroyer.rb
@@ -310,7 +310,6 @@ class PostDestroyer
.where.not(user_id: nil)
.where.not(post_type: Post.types[:whisper])
.order("created_at desc")
- .limit(1)
.first
if last_post.present?