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

This commit is contained in:
Claire authored and GitHub committed 2026-02-26 16:18:42 +00:00
1 parent 5026bf6ac7
commit 9c4d11f927
2 files changed
+4 -1

No files matched your search

@@ -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
+2 -1
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