Fix remaining Rails/WhereExists
cop violations, regenerate todo (#28892)
This commit is contained in:
parent
1a565e4bea
commit
7c9c6c7f80
7 changed files with 7 additions and 22 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue