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