diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-11-18 06:38:07 -0600 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-11-18 07:58:27 -0600 |
commit | f9315005b020878c5182263427eae2e876455da6 (patch) | |
tree | 771fb9b7e3cecba28cf33497b8008aad116b6f81 | |
parent | ba0e07caf813ae9393403fb89681bc6e14133429 (diff) |
Send status ID instead of objects to `ActivityPub::DistributionWorker`
-rw-r--r-- | app/lib/bangtags.rb | 4 | ||||
-rw-r--r-- | app/workers/scheduler/werewolf_scheduler.rb | 2 |
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 |