Chore: FCM Push Fixes (#934)
This commit is contained in:
18
app/views/api/v1/accounts/notifications/index.json.jbuilder
Normal file
18
app/views/api/v1/accounts/notifications/index.json.jbuilder
Normal file
@@ -0,0 +1,18 @@
|
||||
json.data do
|
||||
json.meta do
|
||||
json.unread_count @unread_count
|
||||
end
|
||||
|
||||
json.payload do
|
||||
json.array! @notifications do |notification|
|
||||
json.id notification.id
|
||||
json.notification_type notification.notification_type
|
||||
json.push_message_title notification.push_message_title
|
||||
json.primary_actor notification.primary_actor&.push_event_data
|
||||
json.read_at notification.read_at
|
||||
json.secondary_actor notification.secondary_actor&.push_event_data
|
||||
json.user notification.user&.push_event_data
|
||||
json.created_at notification.created_at.to_i
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user