blob: ca34f2d5d6c2cbc7da0a4bfcaaf05dc62dc155a1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
|
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
|