]> cat aescling's git repositories - mastodon.git/commit
Only check locally when deduplicating usernames (#13581)
authorkaiyou <pierre@jaury.eu>
Thu, 30 Apr 2020 12:39:05 +0000 (14:39 +0200)
committerGitHub <noreply@github.com>
Thu, 30 Apr 2020 12:39:05 +0000 (14:39 +0200)
commit3511528e508aa365e7f88b7e3b6a3b8f99c531cc
tree013a60322c45c1eb42c9fb04eea248fffc26c2c3
parentb8ba977497a53740e66d8db9938382b724283b3a
Only check locally when deduplicating usernames (#13581)

When deduplicating account usernames for OAuthable users, the routine did check if any account was known with that username, including remote accounts. This caused some unnecessary deduplication, and usernames ending with unexpected trailing _1.
This fixes #13580
app/models/concerns/omniauthable.rb