2016-11-19 18:33:02 -05:00
|
|
|
object @notification
|
|
|
|
|
2017-03-23 22:54:24 -04:00
|
|
|
attributes :id, :type, :created_at
|
2016-11-19 18:33:02 -05:00
|
|
|
|
|
|
|
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
|