Add table of contents to about page (#11885)
Move public domain blocks information to about page
This commit is contained in:
parent
e1066cd431
commit
d930eb88b6
10 changed files with 328 additions and 215 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue