about summary refs log tree commit diff
path: root/app/lib
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 /app/lib
parentba0e07caf813ae9393403fb89681bc6e14133429 (diff)
Send status ID instead of objects to `ActivityPub::DistributionWorker`
Diffstat (limited to 'app/lib')
-rw-r--r--app/lib/bangtags.rb4
1 files changed, 2 insertions, 2 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