mirror of
https://github.com/glitch-soc/mastodon.git
synced 2025-12-15 16:59:41 +00:00
Merge commit '5dc634796aba951f6a085e1ed0e1b807e25d7d41' into glitch-soc/merge-upstream
This commit is contained in:
@@ -41,7 +41,8 @@ module Mastodon::CLI
|
||||
class SoftwareUpdate < ApplicationRecord; end
|
||||
|
||||
class DomainBlock < ApplicationRecord
|
||||
scope :by_severity, -> { order(Arel.sql('(CASE severity WHEN 0 THEN 1 WHEN 1 THEN 2 WHEN 2 THEN 0 END), domain')) }
|
||||
enum severity: { silence: 0, suspend: 1, noop: 2 }
|
||||
scope :by_severity, -> { in_order_of(:severity, %w(noop silence suspend)).order(:domain) }
|
||||
end
|
||||
|
||||
class PreviewCard < ApplicationRecord
|
||||
|
||||
Reference in New Issue
Block a user