Fix Code Climate failed (regression from #3622) (#3624)

This commit is contained in:
Yamagishi Kazutoshi 2017-06-07 22:57:59 +09:00 committed by Eugen Rochko
parent 6bd6dcf6df
commit 1d68fe1a60

View File

@ -63,11 +63,7 @@ class ProcessFeedService < BaseService
return status unless just_created
if verb == :share
if original_status.reblog?
status.reblog = original_status.reblog
else
status.reblog = original_status
end
status.reblog = original_status.reblog? ? original_status.reblog : original_status
end
status.thread = find_status(thread(@xml).first) if thread?(@xml)