Skip to content

Commit

Permalink
Fix admin-set follow recommandations being case-sensitive (mastodon#2…
Browse files Browse the repository at this point in the history
  • Loading branch information
ClearlyClaire authored and Jean Bertrand committed Feb 22, 2023
1 parent c7ceb92 commit 520dc9f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/models/account_suggestions/setting_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def setting_to_usernames_and_domains

next if username.blank?

[username, domain]
[username.downcase, domain&.downcase]
end.compact
end

Expand All @@ -63,6 +63,6 @@ def setting
end

def to_ordered_list_key(account)
[account.username, account.domain]
[account.username.downcase, account.domain&.downcase]
end
end

0 comments on commit 520dc9f

Please sign in to comment.