about summary refs log tree commit diff
path: root/app/helpers/autoreject_helper.rb
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-23 19:18:52 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-23 19:18:52 -0500
commitaaae5aee52b2204345c356c08ea3fcaafa096677 (patch)
treee352848716f6525af3098c54460f9331cadb2d7c /app/helpers/autoreject_helper.rb
parentde542eca57fabf7836ad1c7f7f4a36974afd2412 (diff)
should not reject imported posts
Diffstat (limited to 'app/helpers/autoreject_helper.rb')
-rw-r--r--app/helpers/autoreject_helper.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/helpers/autoreject_helper.rb b/app/helpers/autoreject_helper.rb
index 4c66b46f9..f11e32530 100644
--- a/app/helpers/autoreject_helper.rb
+++ b/app/helpers/autoreject_helper.rb
@@ -57,7 +57,8 @@ module AutorejectHelper
   end
 
   def autoreject?(uri = nil)
-    if (@options && @options[:imported]) || should_reject?(uri)
+    return false if @options && @options[:imported]
+    if should_reject?(uri)
       if @json
         Rails.logger.info("Auto-rejected #{@json['id']} (#{@json['type']})")
       elsif uri