properly distribute announcement posts made thru `admin:announce`

staging
multiple creatures 2019-07-20 06:39:20 -05:00
parent 2d99300a6d
commit be251c1eb4
1 changed files with 3 additions and 1 deletions

View File

@ -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