diff --git a/app/serializers/rest/announcement_serializer.rb b/app/serializers/rest/announcement_serializer.rb index ae72f9acebe..f27feb669b1 100644 --- a/app/serializers/rest/announcement_serializer.rb +++ b/app/serializers/rest/announcement_serializer.rb @@ -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 diff --git a/app/serializers/rest/status_serializer.rb b/app/serializers/rest/status_serializer.rb index 1ed8948da1f..0109de882bd 100644 --- a/app/serializers/rest/status_serializer.rb +++ b/app/serializers/rest/status_serializer.rb @@ -145,7 +145,7 @@ class REST::StatusSerializer < ActiveModel::Serializer end def acct - object.account_acct + object.account.pretty_acct end end