about summary refs log tree commit diff
diff options
context:
space:
mode:
authorYamagishi Kazutoshi <ykzts@desire.sh>2017-06-07 22:57:59 +0900
committerEugen Rochko <eugen@zeonfederated.com>2017-06-07 15:57:59 +0200
commit1d68fe1a60088183e6907a93dc5148b7dd11cdec (patch)
tree9f9e89fb936a97f1483eb2e296088c8a6614c586
parent6bd6dcf6df37dea077c4c6af84d979a49dd058db (diff)
Fix Code Climate failed (regression from #3622) (#3624)
-rw-r--r--app/services/process_feed_service.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/services/process_feed_service.rb b/app/services/process_feed_service.rb
index 924a78b65..eabeb1799 100644
--- a/app/services/process_feed_service.rb
+++ b/app/services/process_feed_service.rb
@@ -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)