From aaae5aee52b2204345c356c08ea3fcaafa096677 Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Tue, 23 Jul 2019 19:18:52 -0500 Subject: [PATCH] should not reject imported posts --- app/helpers/autoreject_helper.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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