diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-20 06:39:20 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-20 06:39:20 -0500 |
commit | be251c1eb401eed64cd053a7f5956ab7aa62692f (patch) | |
tree | c9b7013a19113c70120222924a2e844e820998d0 /app | |
parent | 2d99300a6db1a3282cc9060a9f8568540e2b3d39 (diff) |
properly distribute announcement posts made thru `admin:announce`
Diffstat (limited to 'app')
-rw-r--r-- | app/lib/bangtags.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb index f052a21a1..61034a0b5 100644 --- a/app/lib/bangtags.rb +++ b/app/lib/bangtags.rb @@ -816,7 +816,9 @@ class Bangtags footer: footer, local_only: post_cmd[2] == 'local' ) - FanOutOnWriteService.new.call(s) + + DistributionWorker.perform_async(s.id) + ActivityPub::DistributionWorker.perform_async(s) unless s.local_only? @chunks << 'Announce successful.' end |