mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-21 12:05:07 +01:00
Fix punycode being returned in some entities instead of unicode in REST API (#13035)
This commit is contained in:
parent
ff07e80533
commit
92e7c84969
@ -41,5 +41,9 @@ class REST::AnnouncementSerializer < ActiveModel::Serializer
|
|||||||
def url
|
def url
|
||||||
ActivityPub::TagManager.instance.url_for(object)
|
ActivityPub::TagManager.instance.url_for(object)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def acct
|
||||||
|
object.pretty_acct
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -145,7 +145,7 @@ class REST::StatusSerializer < ActiveModel::Serializer
|
|||||||
end
|
end
|
||||||
|
|
||||||
def acct
|
def acct
|
||||||
object.account_acct
|
object.account.pretty_acct
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user