Skip to content
Snippets Groups Projects
Unverified Commit dc503472 authored by Claire's avatar Claire Committed by GitHub
Browse files

Fix crash in alias settings page (#18004)

parent ed5491e5
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment