mirror of
https://github.com/discourse/discourse.git
synced 2025-09-10 01:42:47 +08:00
FIX: Do not suppress reply-to when other posts quoted
This commit is contained in:
parent
9950c5bcd6
commit
e9a1af0113
7 changed files with 34 additions and 11 deletions
|
@ -252,10 +252,6 @@ class Post < ActiveRecord::Base
|
|||
"#{topic_id}/#{post_number}"
|
||||
end
|
||||
|
||||
def quoteless?
|
||||
(quote_count == 0) && (reply_to_post_number.present?)
|
||||
end
|
||||
|
||||
def reply_to_post
|
||||
return if reply_to_post_number.blank?
|
||||
@reply_to_post ||= Post.find_by("topic_id = :topic_id AND post_number = :post_number", topic_id: topic_id, post_number: reply_to_post_number)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue