From e34c5a350321c6c1997bdcc15fbd85cfb521f51b Mon Sep 17 00:00:00 2001 From: unarist Date: Tue, 6 Jun 2017 23:44:48 +0900 Subject: Fix 500 errors on searching invalid URLs (#3613) --- app/services/fetch_remote_resource_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/services') diff --git a/app/services/fetch_remote_resource_service.rb b/app/services/fetch_remote_resource_service.rb index a0c270673..5dfa3a0ff 100644 --- a/app/services/fetch_remote_resource_service.rb +++ b/app/services/fetch_remote_resource_service.rb @@ -5,7 +5,7 @@ class FetchRemoteResourceService < BaseService def call(url) @url = url - process_url unless atom_url.nil? + process_url unless fetched_atom_feed.nil? end private -- cgit