about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-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