1
0
mirror of https://github.com/mastodon/mastodon synced 2024-12-14 22:59:07 +09:00
mastodon/app/views/api/v1/notifications/show.rabl
2016-11-20 19:39:58 +01:00

12 lines
267 B
Ruby

object @notification
attributes :id, :type
child from_account: :account do
extends 'api/v1/accounts/show'
end
node(:status, if: lambda { |n| [:favourite, :reblog, :mention].include?(n.type) }) do |n|
partial 'api/v1/statuses/show', object: n.target_status
end