mirror of
https://github.com/mastodon/mastodon.git
synced 2024-12-29 03:08:51 +01:00
Fix reference to non-existent var in CLI maintenance command (#28363)
This commit is contained in:
parent
bdb6650ebc
commit
ed8e4bab4c
1 changed files with 1 additions and 1 deletions
|
@ -224,7 +224,7 @@ module Mastodon::CLI
|
||||||
users = User.where(id: row['ids'].split(',')).sort_by(&:updated_at).reverse
|
users = User.where(id: row['ids'].split(',')).sort_by(&:updated_at).reverse
|
||||||
ref_user = users.shift
|
ref_user = users.shift
|
||||||
say "Multiple users registered with e-mail address #{ref_user.email}.", :yellow
|
say "Multiple users registered with e-mail address #{ref_user.email}.", :yellow
|
||||||
say "e-mail will be disabled for the following accounts: #{user.map(&:account).map(&:acct).join(', ')}", :yellow
|
say "e-mail will be disabled for the following accounts: #{users.map { |user| user.account.acct }.join(', ')}", :yellow
|
||||||
say 'Please reach out to them and set another address with `tootctl account modify` or delete them.', :yellow
|
say 'Please reach out to them and set another address with `tootctl account modify` or delete them.', :yellow
|
||||||
|
|
||||||
users.each_with_index do |user, index|
|
users.each_with_index do |user, index|
|
||||||
|
|
Loading…
Reference in a new issue