1
0
mirror of https://github.com/mastodon/mastodon synced 2024-12-29 05:58:12 +09:00
mastodon/app/views/api/v1/search/index.rabl
2017-03-22 04:09:28 +01:00

14 lines
232 B
Ruby

object @search
child :accounts, object_root: false do
extends 'api/v1/accounts/show'
end
node(:hashtags) do |search|
search.hashtags.map(&:name)
end
child :statuses, object_root: false do
extends 'api/v1/statuses/show'
end