about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-24 20:04:29 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-24 20:24:52 -0500
commitbf27f256c53a7843aa6393a2d2dcb114a48bbe8b (patch)
treeee18c8bf6f8bbcb714cc05ce891e3c7d7a43c66c /app/helpers
parentcf28bbd9fa9088a00f954c59fc8edd11e00c3910 (diff)
clarify rejected announces correctly (but even more correctly with the right json object)
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/autoreject_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/autoreject_helper.rb b/app/helpers/autoreject_helper.rb
index 3ddbad63d..6f010ca96 100644
--- a/app/helpers/autoreject_helper.rb
+++ b/app/helpers/autoreject_helper.rb
@@ -12,7 +12,7 @@ module AutorejectHelper
 
     domain = uri.scan(/[\w\-]+\.[\w\-]+(?:\.[\w\-]+)*/).first
     blocks = DomainBlock.suspend
-    reason = ((@object && @object['type'] == 'Announce') ? :domain_boosted : :domain)
+    reason = ((@json && @json['type'] == 'Announce') ? :domain_boost : :domain)
     return reason if blocks.where(domain: domain).or(blocks.where('domain LIKE ?', "%.#{domain}")).exists?
 
     return unless @json || @object