mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 13:16:43 +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 :topic
|
||||||
belongs_to :post
|
belongs_to :post
|
||||||
|
|
||||||
scope :errored, -> { where.not(error: nil) }
|
scope :errored, -> { where("NOT is_bounce AND LENGTH(COALESCE(error,'')) > 0") }
|
||||||
end
|
end
|
||||||
|
|
||||||
# == Schema Information
|
# == Schema Information
|
||||||
|
|
Loading…
Reference in New Issue
Block a user