mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 02:35:04 +08:00
hide bounces in rejected email logs
This commit is contained in:
parent
32d253d484
commit
b7e29eebe5
|
@ -3,7 +3,7 @@ class IncomingEmail < ActiveRecord::Base
|
|||
belongs_to :topic
|
||||
belongs_to :post
|
||||
|
||||
scope :errored, -> { where.not(error: nil) }
|
||||
scope :errored, -> { where("NOT is_bounce AND LENGTH(COALESCE(error,'')) > 0") }
|
||||
end
|
||||
|
||||
# == Schema Information
|
||||
|
|
Loading…
Reference in New Issue
Block a user