Add featured_tags to GET /api/v1/profile (#37932)

This commit is contained in:
Claire
2026-02-26 17:18:42 +01:00
committed by GitHub
parent 5026bf6ac7
commit 9c4d11f927
2 changed files with 4 additions and 1 deletions

View File

@@ -11,6 +11,8 @@ class REST::ProfileSerializer < ActiveModel::Serializer
:show_media, :show_media_replies, :show_featured,
:attribution_domains
has_many :featured_tags, serializer: REST::FeaturedTagSerializer
def id
object.id.to_s
end

View File

@@ -48,7 +48,8 @@ RSpec.describe 'Profile API' do
'note' => account.note,
'show_featured' => account.show_featured,
'show_media' => account.show_media,
'show_media_replies' => account.show_media_replies
'show_media_replies' => account.show_media_replies,
'featured_tags' => []
)
end
end