mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 06:51:27 +08:00
Prepare to drop EmailLog#topic_id
.
This commit is contained in:
@ -634,7 +634,7 @@ module Email
|
||||
def forwarded_reply_key?(email_log, user)
|
||||
incoming_emails = IncomingEmail
|
||||
.joins(:post)
|
||||
.where('posts.topic_id = ?', email_log.topic_id)
|
||||
.where('posts.topic_id = ?', email_log.topic.id)
|
||||
.addressed_to(email_log.reply_key)
|
||||
.addressed_to_user(user)
|
||||
.pluck(:to_addresses, :cc_addresses)
|
||||
|
Reference in New Issue
Block a user