about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-09-19 16:57:00 -0500
committerFire Demon <firedemon@creature.cafe>2020-09-19 17:41:27 -0500
commit38af65e794722120bc59eda343059152646a32d0 (patch)
tree80875f3601220e9358f53b0232c446ce02a28749 /lib
parentf190e3c8c4840e6f92b90d913096e80eafc893eb (diff)
[Federation] Add monsterfork:announce_instance_actor Rails task
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/monsterfork.rake7
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