about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
authormultiple creatures <dev@multiple-creature.party>2019-07-20 06:39:20 -0500
committermultiple creatures <dev@multiple-creature.party>2019-07-20 06:39:20 -0500
commitbe251c1eb401eed64cd053a7f5956ab7aa62692f (patch)
treec9b7013a19113c70120222924a2e844e820998d0 /app
parent2d99300a6db1a3282cc9060a9f8568540e2b3d39 (diff)
properly distribute announcement posts made thru `admin:announce`
Diffstat (limited to 'app')
-rw-r--r--app/lib/bangtags.rb4
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