From 74db93114f299a658b761ab172d7af722c21f128 Mon Sep 17 00:00:00 2001 From: sneakers-the-rat Date: Wed, 23 Oct 2024 00:37:40 -0700 Subject: [PATCH] reject local accounts for backfilling because that makes no sense --- app/workers/activitypub/account_backfill_worker.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/workers/activitypub/account_backfill_worker.rb b/app/workers/activitypub/account_backfill_worker.rb index 4485fc74f1..a4271690e4 100644 --- a/app/workers/activitypub/account_backfill_worker.rb +++ b/app/workers/activitypub/account_backfill_worker.rb @@ -5,6 +5,9 @@ class ActivityPub::AccountBackfillWorker include ExponentialBackoff def perform(account_id, options = {}) - ActivityPub::AccountBackfillService.new.call(Account.find(account_id), **options.deep_symbolize_keys) + account = Account.find(account_id) + return if account.local? + + ActivityPub::AccountBackfillService.new.call(account, **options.deep_symbolize_keys) end end