Fix Move handler queuing jobs that will fail if account is suspended (#11864)
Don't put Move handler on cooldown if it didn't run. Skip unmerging from timelines to save unnecessary work.
This commit is contained in:
parent
c21386cff5
commit
38dc51b2d6
3 changed files with 19 additions and 5 deletions
|
@ -11,7 +11,7 @@ class UnfollowFollowWorker
|
|||
new_target_account = Account.find(new_target_account_id)
|
||||
|
||||
FollowService.new.call(follower_account, new_target_account)
|
||||
UnfollowService.new.call(follower_account, old_target_account)
|
||||
UnfollowService.new.call(follower_account, old_target_account, skip_unmerge: true)
|
||||
rescue ActiveRecord::RecordNotFound, Mastodon::NotPermittedError
|
||||
true
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue