Remove unused matches_domain
scopes on Account, DomainAllow, DomainBlock (#28803)
This commit is contained in:
parent
0b853678a4
commit
d0b3bc23d7
4 changed files with 11 additions and 13 deletions
|
@ -28,7 +28,6 @@ class DomainBlock < ApplicationRecord
|
|||
has_many :accounts, foreign_key: :domain, primary_key: :domain, inverse_of: false, dependent: nil
|
||||
delegate :count, to: :accounts, prefix: true
|
||||
|
||||
scope :matches_domain, ->(value) { where(arel_table[:domain].matches("%#{value}%")) }
|
||||
scope :with_user_facing_limitations, -> { where(severity: [:silence, :suspend]) }
|
||||
scope :with_limitations, -> { where(severity: [:silence, :suspend]).or(where(reject_media: true)) }
|
||||
scope :by_severity, -> { in_order_of(:severity, %w(noop silence suspend)).order(:domain) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue