Add featured_tags to GET /api/v1/profile (#37932)
This commit is contained in:
parent
5026bf6ac7
commit
9c4d11f927
@ -11,6 +11,8 @@ class REST::ProfileSerializer < ActiveModel::Serializer
|
|||||||
:show_media, :show_media_replies, :show_featured,
|
:show_media, :show_media_replies, :show_featured,
|
||||||
:attribution_domains
|
:attribution_domains
|
||||||
|
|
||||||
|
has_many :featured_tags, serializer: REST::FeaturedTagSerializer
|
||||||
|
|
||||||
def id
|
def id
|
||||||
object.id.to_s
|
object.id.to_s
|
||||||
end
|
end
|
||||||
|
|||||||
@ -48,7 +48,8 @@ RSpec.describe 'Profile API' do
|
|||||||
'note' => account.note,
|
'note' => account.note,
|
||||||
'show_featured' => account.show_featured,
|
'show_featured' => account.show_featured,
|
||||||
'show_media' => account.show_media,
|
'show_media' => account.show_media,
|
||||||
'show_media_replies' => account.show_media_replies
|
'show_media_replies' => account.show_media_replies,
|
||||||
|
'featured_tags' => []
|
||||||
)
|
)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user