reject local accounts for backfilling because that makes no sense

This commit is contained in:
sneakers-the-rat 2024-10-23 00:37:40 -07:00
parent 387a52056b
commit 74db93114f
No known key found for this signature in database
GPG key ID: 6DCB96EF1E4D232D

View file

@ -5,6 +5,9 @@ class ActivityPub::AccountBackfillWorker
include ExponentialBackoff include ExponentialBackoff
def perform(account_id, options = {}) 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
end end