mirror of
https://github.com/mastodon/mastodon.git
synced 2025-09-05 17:31:12 +00:00
Fix unnecessary account note addition for already-muted moved-to users (#35566)
This commit is contained in:
parent
bedbab74b9
commit
ea976a5ffb
|
@ -115,8 +115,10 @@ class MoveWorker
|
||||||
|
|
||||||
def carry_mutes_over!
|
def carry_mutes_over!
|
||||||
@source_account.muted_by_relationships.where(account: Account.local).find_each do |mute|
|
@source_account.muted_by_relationships.where(account: Account.local).find_each do |mute|
|
||||||
MuteService.new.call(mute.account, @target_account, notifications: mute.hide_notifications) unless skip_mute_move?(mute)
|
unless skip_mute_move?(mute)
|
||||||
add_account_note_if_needed!(mute.account, 'move_handler.carry_mutes_over_text')
|
MuteService.new.call(mute.account, @target_account, notifications: mute.hide_notifications)
|
||||||
|
add_account_note_if_needed!(mute.account, 'move_handler.carry_mutes_over_text')
|
||||||
|
end
|
||||||
rescue => e
|
rescue => e
|
||||||
@deferred_error = e
|
@deferred_error = e
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue
Block a user