mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
Follow new account before unfollowing the old one during move (#9719)
This commit is contained in:
parent
fae32634b1
commit
b17b2f25ac
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user