1
0
mirror of https://github.com/whippyshou/mastodon synced 2024-12-14 14:48:55 +09:00
whippy-edition/app/views/api/v1/notifications/show.rabl
2017-03-24 03:55:45 +01:00

12 lines
280 B
Ruby

object @notification
attributes :id, :type, :created_at
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