mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-27 18:40:12 -05:00
Increment index which was previously not used in maintenance CLI loop (#25118)
This commit is contained in:
parent
ec9bc7e604
commit
2cecb2dc9e
@ -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 "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.'
|
@prompt.warn 'Please reach out to them and set another address with `tootctl account modify` or delete them.'
|
||||||
|
|
||||||
i = 0
|
users.each_with_index do |user, index|
|
||||||
users.each do |user|
|
user.update!(email: "#{index} " + user.email)
|
||||||
user.update!(email: "#{i} " + user.email)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user