2016-03-23 18:39:41 +01:00
|
|
|
json.title notification.notification_type
|
2019-04-18 11:35:09 +02:00
|
|
|
json.description _t('.user_NAME_has_merged_his_account_with_the_one_imported_from_PROVIDER_UID_html',
|
2016-03-23 18:39:41 +01:00
|
|
|
{
|
2019-06-12 15:49:35 +02:00
|
|
|
NAME: notification.attached_object&.profile&.full_name || t('api.notifications.deleted_user'),
|
2019-06-12 15:34:03 +02:00
|
|
|
GENDER: bool_to_sym(notification.attached_object&.statistic_profile&.gender),
|
|
|
|
PROVIDER: notification.attached_object&.provider,
|
|
|
|
UID: notification.attached_object&.uid
|
2016-03-23 18:39:41 +01:00
|
|
|
}) # messageFormat
|
|
|
|
json.url notification_url(notification, format: :json)
|