Merge branch 'main' into glitch-soc/merge-upstream

This commit is contained in:
Claire
2022-11-07 19:53:30 +01:00
193 changed files with 2791 additions and 1575 deletions

View File

@ -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