1
0
Fork 0
mirror of https://github.com/mastodon/mastodon.git synced 2024-08-20 21:08:15 -07:00

Increment index which was previously not used in maintenance CLI loop (#25118)

This commit is contained in:
Matt Jankowski 2023-05-30 10:08:47 -04:00 committed by GitHub
parent ec9bc7e604
commit 2cecb2dc9e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -225,9 +225,8 @@ module Mastodon::CLI
@prompt.warn "e-mail will be disabled for the following accounts: #{user.map(&:account).map(&:acct).join(', ')}"
@prompt.warn 'Please reach out to them and set another address with `tootctl account modify` or delete them.'
i = 0
users.each do |user|
user.update!(email: "#{i} " + user.email)
users.each_with_index do |user, index|
user.update!(email: "#{index} " + user.email)
end
end