gearheads
/
mastodon
Archived
2
0
Fork 0
This repository has been archived on 2024-06-09. You can view files and clone it, but cannot push or open issues/pull-requests.
mastodon/app/views/api/v1/search/index.rabl

14 lines
212 B
Ruby

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