From 38af65e794722120bc59eda343059152646a32d0 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Sat, 19 Sep 2020 16:57:00 -0500 Subject: [Federation] Add monsterfork:announce_instance_actor Rails task --- lib/tasks/monsterfork.rake | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lib') 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 -- cgit