You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
267 B

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