about summary refs log tree commit diff
path: root/app/services/remove_status_service.rb
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2016-12-06 18:32:36 +0100
committerEugen Rochko <eugen@zeonfederated.com>2016-12-06 18:32:36 +0100
commit2ef9f36cf2b956a6e9057a4ef784f7770a97419e (patch)
treeca5dc73b62f3c7a8996cff5f916d05063731069e /app/services/remove_status_service.rb
parentf978b06dd188fef4c2ece5e787818579b663ddf8 (diff)
Improve suspend account service
Diffstat (limited to 'app/services/remove_status_service.rb')
-rw-r--r--app/services/remove_status_service.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/services/remove_status_service.rb b/app/services/remove_status_service.rb
index 4e03661da..fa55e668e 100644
--- a/app/services/remove_status_service.rb
+++ b/app/services/remove_status_service.rb
@@ -11,10 +11,10 @@ class RemoveStatusService < BaseService
 
     status.destroy!
 
-    if status.account.local?
-      HubPingWorker.perform_async(status.account.id)
-      Pubsubhubbub::DistributionWorker.perform_async(status.stream_entry.id)
-    end
+    return unless status.account.local?
+
+    HubPingWorker.perform_async(status.account.id)
+    Pubsubhubbub::DistributionWorker.perform_async(status.stream_entry.id)
   end
 
   private