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

rebase/4.0.0rc2
Claire 2022-04-11 16:16:33 +02:00
commit f9fbff8539
1 changed files with 5 additions and 0 deletions

View File

@ -28,6 +28,11 @@ class AccountAlias < ApplicationRecord
super(val.start_with?('@') ? val[1..-1] : val)
end
def pretty_acct
username, domain = acct.split('@')
domain.nil? ? username : "#{username}@#{Addressable::IDNA.to_unicode(domain)}"
end
private
def set_uri