mirror of
https://github.com/mastodon/mastodon.git
synced 2024-08-20 21:08:15 -07:00
Fix too late return
This commit is contained in:
parent
7cde08e30b
commit
f63f0c4625
1 changed files with 2 additions and 2 deletions
|
@ -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?
|
||||
|
|
Loading…
Reference in a new issue