diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tasks/monsterfork.rake | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/tasks/monsterfork.rake b/lib/tasks/monsterfork.rake index 041bdac3c..b87f681fd 100644 --- a/lib/tasks/monsterfork.rake +++ b/lib/tasks/monsterfork.rake @@ -19,4 +19,11 @@ namespace :monsterfork do count += 1 end end + + desc '(Re-)announce instance actor to allow-listed servers' + task announce_instance_actor: :environment do + Rails.logger.info('Announcing instance actor to all allowed servers...') + ActivityPub::UpdateDistributionWorker.new.perform(Account.representative.id) + Rails.logger.info('Done!') + end end |