mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Remove duplicated line of code (#22733)
This commit is contained in:
parent
4ef8129bff
commit
40bedea75a
@ -305,7 +305,6 @@ class PostDestroyer
|
||||
def make_previous_post_the_last_one
|
||||
last_post =
|
||||
Post
|
||||
.where("topic_id = ? and id <> ?", @post.topic_id, @post.id)
|
||||
.select(:created_at, :user_id, :post_number)
|
||||
.where("topic_id = ? and id <> ?", @post.topic_id, @post.id)
|
||||
.where.not(user_id: nil)
|
||||
|
Loading…
Reference in New Issue
Block a user