Fix punycode being returned in some entities instead of unicode in REST API (#13035)
This commit is contained in:
parent
d0fe0d348b
commit
273aa806d3
2 changed files with 5 additions and 1 deletions
|
@ -41,5 +41,9 @@ class REST::AnnouncementSerializer < ActiveModel::Serializer
|
|||
def url
|
||||
ActivityPub::TagManager.instance.url_for(object)
|
||||
end
|
||||
|
||||
def acct
|
||||
object.pretty_acct
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
@ -145,7 +145,7 @@ class REST::StatusSerializer < ActiveModel::Serializer
|
|||
end
|
||||
|
||||
def acct
|
||||
object.account_acct
|
||||
object.account.pretty_acct
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue