about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/services/reblog_service.rb7
1 files changed, 1 insertions, 6 deletions
diff --git a/app/services/reblog_service.rb b/app/services/reblog_service.rb
index 74cbdd31c..29dcbaf7c 100644
--- a/app/services/reblog_service.rb
+++ b/app/services/reblog_service.rb
@@ -26,8 +26,6 @@ class ReblogService < BaseService
 
       reblog = account.statuses.create!(reblog: reblogged_status, text: '', visibility: visibility)
     end
-    DistributionWorker.perform_async(reblog.id)
-    ActivityPub::DistributionWorker.perform_async(reblog.id) unless reblogged_status.local_only?
 
     if !options[:distribute] && account&.user&.boost_interval?
       QueuedBoost.find_or_create_by!(account_id: account.id, status_id: reblogged_status.id) if account&.user&.boost_interval?
@@ -35,10 +33,7 @@ class ReblogService < BaseService
       return reblog unless options[:distribute] || new_reblog
 
       DistributionWorker.perform_async(reblog.id)
-
-      unless reblogged_status.local_only?
-        ActivityPub::DistributionWorker.perform_async(reblog.id)
-      end
+      ActivityPub::DistributionWorker.perform_async(reblog.id) unless reblogged_status.local_only?
 
       curate_status(reblogged_status)