Add table of contents to about page (#11885)
Move public domain blocks information to about page
This commit is contained in:
@ -26,6 +26,7 @@ class DomainBlock < ApplicationRecord
|
||||
|
||||
scope :matches_domain, ->(value) { where(arel_table[:domain].matches("%#{value}%")) }
|
||||
scope :with_user_facing_limitations, -> { where(severity: [:silence, :suspend]).or(where(reject_media: true)) }
|
||||
scope :by_severity, -> { order(Arel.sql('(CASE severity WHEN 0 THEN 1 WHEN 1 THEN 2 WHEN 2 THEN 0 END), reject_media, domain')) }
|
||||
|
||||
class << self
|
||||
def suspend?(domain)
|
||||
|
Reference in New Issue
Block a user