Fix account subscribes not moving

This commit is contained in:
noellabo 2023-02-11 10:48:37 +09:00
parent 074b37c759
commit 53db1fcf24

View file

@ -13,6 +13,8 @@ class MoveWorker
queue_follow_unfollows!
end
rewrite_subscribes!
@deferred_error = nil
copy_account_notes!
@ -35,6 +37,14 @@ class MoveWorker
.update_all(target_account_id: @target_account.id)
end
def rewrite_subscribes!
@source_account.passive_subscribes
.where.not(account: @target_account.subscribers)
.where.not(account_id: @target_account.id)
.in_batches
.update_all(target_account_id: @target_account.id)
end
def queue_follow_unfollows!
bypass_locked = @target_account.local?