1
0
Fork 0
forked from fedi/mastodon

Fix admin-set follow recommandations being case-sensitive (#23500)

Fixes #23472
This commit is contained in:
Claire 2023-02-10 11:14:58 +01:00 committed by GitHub
parent 67de888bad
commit a9c220242b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -54,7 +54,7 @@ class AccountSuggestions::SettingSource < AccountSuggestions::Source
next if username.blank? next if username.blank?
[username, domain] [username.downcase, domain&.downcase]
end.compact end.compact
end end
@ -63,6 +63,6 @@ class AccountSuggestions::SettingSource < AccountSuggestions::Source
end end
def to_ordered_list_key(account) def to_ordered_list_key(account)
[account.username, account.domain] [account.username.downcase, account.domain&.downcase]
end end
end end