]> cat aescling's git repositories - mastodon.git/commitdiff
Fix wrong attribute in MoveWorker (#12066)
authorEugen Rochko <eugen@zeonfederated.com>
Thu, 3 Oct 2019 15:50:48 +0000 (17:50 +0200)
committerGitHub <noreply@github.com>
Thu, 3 Oct 2019 15:50:48 +0000 (17:50 +0200)
app/workers/move_worker.rb

index 22788716f4fd52634ed086d11df1706ed795c6b9..83f7090eec1198f0d1d9472524304e769171cadb 100644 (file)
@@ -22,7 +22,7 @@ class MoveWorker
     @source_account.passive_relationships
                    .where(account: Account.local)
                    .in_batches
-                   .update_all(target_account: @target_account)
+                   .update_all(target_account_id: @target_account.id)
   end
 
   def queue_follow_unfollows!