0
0
Fork 0

Fix remaining Rails/WhereExists cop violations, regenerate todo (#28892)

This commit is contained in:
Matt Jankowski 2024-01-25 07:37:07 -05:00 committed by GitHub
parent 1a565e4bea
commit 7c9c6c7f80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 7 additions and 22 deletions

View file

@ -123,7 +123,7 @@ class MoveWorker
end
def add_account_note_if_needed!(account, id)
unless AccountNote.where(account: account, target_account: @target_account).exists?
unless AccountNote.exists?(account: account, target_account: @target_account)
text = I18n.with_locale(account.user&.locale.presence || I18n.default_locale) do
I18n.t(id, acct: @source_account.acct)
end