Skip to content
Snippets Groups Projects
Unverified Commit b17b2f25 authored by Eugen Rochko's avatar Eugen Rochko Committed by GitHub
Browse files

Follow new account before unfollowing the old one during move (#9719)

parent fae32634
No related branches found
No related tags found
No related merge requests found
......@@ -10,9 +10,9 @@ class UnfollowFollowWorker
old_target_account = Account.find(old_target_account_id)
new_target_account = Account.find(new_target_account_id)
UnfollowService.new.call(follower_account, old_target_account)
FollowService.new.call(follower_account, new_target_account)
rescue ActiveRecord::RecordNotFound
UnfollowService.new.call(follower_account, old_target_account)
rescue ActiveRecord::RecordNotFound, Mastodon::NotPermittedError
true
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment