diff --git a/include/mastodont_notification.h b/include/mastodont_notification.h index 0c60673..78cfc0e 100644 --- a/include/mastodont_notification.h +++ b/include/mastodont_notification.h @@ -26,6 +26,7 @@ struct mstdnt_notification { char* id; char* created_at; + char* emoji; struct mstdnt_account* account; struct mstdnt_status* status; mstdnt_notification_t type; diff --git a/src/notification.c b/src/notification.c index 6488f62..7d19be7 100644 --- a/src/notification.c +++ b/src/notification.c @@ -55,6 +55,7 @@ int mstdnt_notification_json(struct mstdnt_notification* notif, cJSON* js) struct _mstdnt_val_ref vals[] = { { "account", &(notif->account), _mstdnt_val_malloc_account_call }, { "created_at", &(notif->created_at), _mstdnt_val_string_call }, + { "emoji", &(notif->created_at), _mstdnt_val_string_call }, { "id", &(notif->id), _mstdnt_val_string_call }, { "status", &(notif->status), _mstdnt_val_malloc_status_call }, /* { "pleroma", &(notif->pleroma), _mstdnt_val_notif_pleroma_call }, */