about summary refs log tree commit diff
path: root/app/models
diff options
context:
space:
mode:
authorClaire <claire.github-309c@sitedethib.com>2022-11-07 19:53:30 +0100
committerClaire <claire.github-309c@sitedethib.com>2022-11-07 19:53:30 +0100
commitbe7032b9cf5fe0ed3461be4e880503a6d0463623 (patch)
tree2a9e7a00c4844e853cbe19c929c18941c8a803f9 /app/models
parentc493c967d67058a305006a09de66a1e08d877680 (diff)
parent3114c826a7a6b2b10bff722c59cca57abe7f819f (diff)
Merge branch 'main' into glitch-soc/merge-upstream
Diffstat (limited to 'app/models')
-rw-r--r--app/models/account_alias.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/account_alias.rb b/app/models/account_alias.rb
index b421c66e2..b7267d632 100644
--- a/app/models/account_alias.rb
+++ b/app/models/account_alias.rb
@@ -29,7 +29,7 @@ class AccountAlias < ApplicationRecord
   end
 
   def pretty_acct
-    username, domain = acct.split('@')
+    username, domain = acct.split('@', 2)
     domain.nil? ? username : "#{username}@#{Addressable::IDNA.to_unicode(domain)}"
   end