Fix punycode being returned in some entities instead of unicode in REST API (#13035)

This commit is contained in:
Eugen Rochko authored and GitHub committed 2020-02-03 21:16:37 +01:00
1 parent ff07e80533
commit 92e7c84969
2 files changed
+5 -1

No files matched your search

@@ -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
+1 -1
View File
@@ -145,7 +145,7 @@ class REST::StatusSerializer < ActiveModel::Serializer
end
def acct
object.account_acct
object.account.pretty_acct
end
end