Browse Source

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

Fixes #23472
closed-social-glitch-2
Claire 1 year ago
committed by GitHub
parent
commit
a9c220242b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      app/models/account_suggestions/setting_source.rb

+ 2
- 2
app/models/account_suggestions/setting_source.rb View File

@ -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

Loading…
Cancel
Save