From be251c1eb401eed64cd053a7f5956ab7aa62692f Mon Sep 17 00:00:00 2001 From: multiple creatures Date: Sat, 20 Jul 2019 06:39:20 -0500 Subject: properly distribute announcement posts made thru `admin:announce` --- app/lib/bangtags.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'app') 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 -- cgit