about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-30 20:24:37 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-30 20:24:37 -0500
commita5ce8eddb414a1f77136a30598744cb99846182f (patch)
tree3c527233a0961c8d8c04cd2c0dd81cfa32ee6947 /app/models
parent85aec06845cc834418ef6337d5cb1e79eb448b95 (diff)
use a non-tabular domain policy list layout & paginate
Diffstat (limited to 'app/models')
-rw-r--r--app/models/domain_block.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/app/models/domain_block.rb b/app/models/domain_block.rb
index c62ca3d8c..486e2865b 100644
--- a/app/models/domain_block.rb
+++ b/app/models/domain_block.rb
@@ -45,4 +45,12 @@ class DomainBlock < ApplicationRecord
     scope = suspend? ? accounts.where(suspended_at: created_at) : accounts.where(silenced_at: created_at)
     scope.count
   end
+
+  def additionals
+    additionals = []
+    additionals << "force sensitive media" if force_sensitive?
+    additionals << "reject media" if reject_media?
+    additionals << "reject reports" if reject_reports?
+    additionals
+  end
 end