Fix unnecessary account note addition for already-muted moved-to users (#35566)

This commit is contained in:
Matt Jankowski authored and GitHub committed 2025-07-29 08:23:19 +00:00
1 parent bedbab74b9
commit ea976a5ffb
1 file changed
+4 -2
+4 -2
View File
@@ -115,8 +115,10 @@ class MoveWorker
def carry_mutes_over!
@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)
add_account_note_if_needed!(mute.account, 'move_handler.carry_mutes_over_text')
unless skip_mute_move?(mute)
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
@deferred_error = e
end