about summary refs log tree commit diff
path: root/app/helpers
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-23 00:10:58 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-23 00:17:10 -0500
commit4836e1f5dfd483817ada885584b4c981fdc860f9 (patch)
treed3423fbdb98b5b45fcd32f6f29ab8e67a7328818 /app/helpers
parent6a2b3230069aeb3918c35e542c0fb607345b7a79 (diff)
log rejected uris
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/autoreject_helper.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/app/helpers/autoreject_helper.rb b/app/helpers/autoreject_helper.rb
index 7b9371280..4c66b46f9 100644
--- a/app/helpers/autoreject_helper.rb
+++ b/app/helpers/autoreject_helper.rb
@@ -58,7 +58,11 @@ module AutorejectHelper
 
   def autoreject?(uri = nil)
     if (@options && @options[:imported]) || should_reject?(uri)
-      Rails.logger.info("Auto-rejected #{@json['type']} activity #{@json['id']}")
+      if @json
+        Rails.logger.info("Auto-rejected #{@json['id']} (#{@json['type']})")
+      elsif uri
+        Rails.logger.info("Auto-rejected #{uri}")
+      end
       return true
     end
     false