about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2020-02-04 19:43:29 -0600
committermultiple creatures <dev@multiple-creature.party>2020-02-04 19:43:29 -0600
commit6ddf5e72205dba7e31cd4f759bcda369f04c3b86 (patch)
tree7830c7790ae76183d5f9885a86e988fa5fb55c72
parent353558c59f48d981743203ab977dbf2ae454ba02 (diff)
fix queued boosts
-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)