Add featured_tags to GET /api/v1/profile (#37932)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user