mirror of
https://github.com/glitch-soc/mastodon.git
synced 2024-11-24 09:04:00 -05:00
Merge branch 'main' into glitch-soc/merge-upstream
This commit is contained in:
commit
f9fbff8539
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user