mirror of
https://framagit.org/tykayn/mastodon.git
synced 2023-08-25 08:33:12 +02:00
12 lines
267 B
Plaintext
12 lines
267 B
Plaintext
|
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
|