Adding unified streamable notifications
This commit is contained in:
11
app/views/api/v1/notifications/show.rabl
Normal file
11
app/views/api/v1/notifications/show.rabl
Normal file
@ -0,0 +1,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
|
Reference in New Issue
Block a user