mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-03-25 06:11:20 -04:00
hide bounces in rejected email logs
This commit is contained in:
parent
32d253d484
commit
b7e29eebe5
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue