about summary refs log tree commit diff
path: root/app/models/domain_block.rb
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-08-28 13:27:17 +0200
committerGitHub <noreply@github.com>2022-08-28 13:27:17 +0200
commit215738bb3cba4951e84174b461da5f1004b0649e (patch)
treececa848b6a0553474e2b228dbf8c9e9c144cc99f /app/models/domain_block.rb
parent54d9a9c18a74a1ec766d8f611ad3ee11ab4c5422 (diff)
parent54ae7a221e862990550850500d70997c70187b70 (diff)
Merge pull request #1833 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/models/domain_block.rb')
-rw-r--r--app/models/domain_block.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/domain_block.rb b/app/models/domain_block.rb
index a15206b5e..b08687787 100644
--- a/app/models/domain_block.rb
+++ b/app/models/domain_block.rb
@@ -31,6 +31,10 @@ class DomainBlock < ApplicationRecord
   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')) }
 
+  def to_log_human_identifier
+    domain
+  end
+
   def policies
     if suspend?
       [:suspend]