diff options
author | Claire <claire.github-309c@sitedethib.com> | 2023-02-10 11:14:58 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-10 11:14:58 +0100 |
commit | a9c220242bcc5f3d5e4c8ea92483f6b626a30ffa (patch) | |
tree | 33d38c03b63877634db76014edd37c1949cfb9ed /app | |
parent | 67de888bad9b045787dd8fe6db77658b84137426 (diff) |
Fix admin-set follow recommandations being case-sensitive (#23500)
Fixes #23472
Diffstat (limited to 'app')
-rw-r--r-- | app/models/account_suggestions/setting_source.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/models/account_suggestions/setting_source.rb b/app/models/account_suggestions/setting_source.rb index be9eff233..7b8873e0c 100644 --- a/app/models/account_suggestions/setting_source.rb +++ b/app/models/account_suggestions/setting_source.rb @@ -54,7 +54,7 @@ class AccountSuggestions::SettingSource < AccountSuggestions::Source next if username.blank? - [username, domain] + [username.downcase, domain&.downcase] end.compact end @@ -63,6 +63,6 @@ class AccountSuggestions::SettingSource < AccountSuggestions::Source end def to_ordered_list_key(account) - [account.username, account.domain] + [account.username.downcase, account.domain&.downcase] end end |