diff options
author | Claire <claire.github-309c@sitedethib.com> | 2022-05-02 01:00:08 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-02 01:00:08 +0200 |
commit | 9a3be0ad688ea80fffee78635395141ad2419e8a (patch) | |
tree | c407aa4d85c5752fb7409639967634daad8bf86a /app/services | |
parent | 33f3818d660c67194f94c7ff2bb180f4865e6748 (diff) |
Fix error when looking handle with surrounding spaces (#18225)
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/resolve_account_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/resolve_account_service.rb b/app/services/resolve_account_service.rb index 21332a03e..387e2e09b 100644 --- a/app/services/resolve_account_service.rb +++ b/app/services/resolve_account_service.rb @@ -66,7 +66,7 @@ class ResolveAccountService < BaseService @username = @account.username @domain = @account.domain else - @username, @domain = uri.split('@') + @username, @domain = uri.strip.gsub(/\A@/, '').split('@') end @domain = begin |