about summary refs log tree commit diff
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-11-18 06:38:07 -0600
committermultiple creatures <dev@multiple-creature.party>2019-11-18 07:58:27 -0600
commitf9315005b020878c5182263427eae2e876455da6 (patch)
tree771fb9b7e3cecba28cf33497b8008aad116b6f81
parentba0e07caf813ae9393403fb89681bc6e14133429 (diff)
Send status ID instead of objects to `ActivityPub::DistributionWorker`
-rw-r--r--app/lib/bangtags.rb4
-rw-r--r--app/workers/scheduler/werewolf_scheduler.rb2
2 files changed, 3 insertions, 3 deletions
diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb
index d708683cb..507a99b95 100644
--- a/app/lib/bangtags.rb
+++ b/app/lib/bangtags.rb
@@ -629,7 +629,7 @@ class Bangtags
             @parent_status.save
             Rails.cache.delete("statuses/#{@parent_status.id}")
             DistributionWorker.perform_async(@parent_status.id)
-            ActivityPub::DistributionWorker.perform_async(@parent_status) unless @parent_status.local_only?
+            ActivityPub::DistributionWorker.perform_async(@parent_status.id) unless @parent_status.local_only?
           else
             v = cmd[1].downcase
             status.visibility = visibilities[v] unless visibilities[v].nil?
@@ -1033,7 +1033,7 @@ class Bangtags
           )
 
           DistributionWorker.perform_async(s.id)
-          ActivityPub::DistributionWorker.perform_async(s) unless s.local_only?
+          ActivityPub::DistributionWorker.perform_async(s.id) unless s.local_only?
 
           @chunks << 'Announce successful.'
         end
diff --git a/app/workers/scheduler/werewolf_scheduler.rb b/app/workers/scheduler/werewolf_scheduler.rb
index 6b5764887..1cb4c9c70 100644
--- a/app/workers/scheduler/werewolf_scheduler.rb
+++ b/app/workers/scheduler/werewolf_scheduler.rb
@@ -31,7 +31,7 @@ class Scheduler::WerewolfScheduler
     )
 
     DistributionWorker.perform_async(s.id)
-    ActivityPub::DistributionWorker.perform_async(s)
+    ActivityPub::DistributionWorker.perform_async(s.id)
   end
 
   private