Fixed missing account in MoveDistributionWorker (#11906)

th-downstream
Takeshi Umeda 5 years ago committed by Eugen Rochko
parent 9267e4310d
commit 4049193f69

@ -8,6 +8,7 @@ class ActivityPub::MoveDistributionWorker
def perform(migration_id) def perform(migration_id)
@migration = AccountMigration.find(migration_id) @migration = AccountMigration.find(migration_id)
@account = @migration.account
ActivityPub::DeliveryWorker.push_bulk(inboxes) do |inbox_url| ActivityPub::DeliveryWorker.push_bulk(inboxes) do |inbox_url|
[signed_payload, @account.id, inbox_url] [signed_payload, @account.id, inbox_url]

Loading…
Cancel
Save