diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-11-07 21:07:01 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-07 21:07:01 +0100 |
commit | ac219dd1f6d660d3728c5881c4eb3b672fea432e (patch) | |
tree | fd2f30f2cb28a964442cc7b10d8ad8729bd659d2 /app/workers | |
parent | c493c967d67058a305006a09de66a1e08d877680 (diff) | |
parent | 2bc22be66cf09ed19eb7fb23b08324882a73b2b9 (diff) |
Merge pull request #1903 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/move_worker.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/workers/move_worker.rb b/app/workers/move_worker.rb index c3167f9ca..3b429928e 100644 --- a/app/workers/move_worker.rb +++ b/app/workers/move_worker.rb @@ -8,7 +8,9 @@ class MoveWorker @target_account = Account.find(target_account_id) if @target_account.local? && @source_account.local? - rewrite_follows! + nb_moved = rewrite_follows! + @source_account.update_count!(:followers_count, -nb_moved) + @target_account.update_count!(:followers_count, nb_moved) else queue_follow_unfollows! end |