about summary refs log tree commit diff
path: root/app/services
diff options
context:
space:
mode:
authorEugen <eugen@zeonfederated.com>2017-01-14 02:22:16 +0100
committerGitHub <noreply@github.com>2017-01-14 02:22:16 +0100
commitf63f0c46253f8d3c5524645160cbfe0c70cdec2f (patch)
treea95a8a6d8ec9b8350a9e5070b06b96ae8412db79 /app/services
parent7cde08e30b2fec4bf768b24a8bec7889f0076158 (diff)
Fix too late return
Diffstat (limited to 'app/services')
-rw-r--r--app/services/process_feed_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/process_feed_service.rb b/app/services/process_feed_service.rb
index f085fcd8e..cc35e65b8 100644
--- a/app/services/process_feed_service.rb
+++ b/app/services/process_feed_service.rb
@@ -44,6 +44,8 @@ class ProcessFeedService < BaseService
       Rails.logger.debug "Creating remote status #{id}"
       status = status_from_xml(@xml)
 
+      return if status.nil?
+      
       if verb == :share
         original_status = status_from_xml(@xml.at_xpath('.//activity:object', activity: TagManager::AS_XMLNS))
         status.reblog   = original_status
@@ -56,8 +58,6 @@ class ProcessFeedService < BaseService
         end
       end
 
-      return if status.nil?
-
       status.save!
 
       NotifyService.new.call(status.reblog.account, status) if status.reblog? && status.reblog.account.local?