diff options
author | Claire <claire.github-309c@sitedethib.com> | 2023-02-10 22:56:36 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-10 22:56:36 +0100 |
commit | dc02a93d04815c618dc55748fff3cfe64c7023d9 (patch) | |
tree | 5b6d56d248379823660d70dc35c95e4c547f43ea /app/models/concerns/omniauthable.rb | |
parent | 76b4e7727b7497c1b68e06133831701f8950ae19 (diff) | |
parent | 87419f9307f54755af4604876ac149262ae3f0a6 (diff) |
Merge pull request #2105 from ClearlyClaire/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/models/concerns/omniauthable.rb')
-rw-r--r-- | app/models/concerns/omniauthable.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/concerns/omniauthable.rb b/app/models/concerns/omniauthable.rb index feac0a1f5..7d54e9d6d 100644 --- a/app/models/concerns/omniauthable.rb +++ b/app/models/concerns/omniauthable.rb @@ -97,8 +97,7 @@ module Omniauthable def ensure_valid_username(starting_username) starting_username = starting_username.split('@')[0] temp_username = starting_username.gsub(/[^a-z0-9_]+/i, '') - validated_username = temp_username.truncate(30, omission: '') - validated_username + temp_username.truncate(30, omission: '') end end end |