You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
apogee/src/model/notification.json.template

27 lines
727 B
Plaintext

{
"account": %( api_Account_write( a, f, 1 ); ),
"created_at": "2022-12-12T15:31:54.000Z",
"id": "%d{n->id}",
"pleroma": {
"is_muted": false,
"is_seen": false
},
%( if(s) { )
"status": %( api_status_write_as_json(s,f); ),
%( } )
%( if( n->type == nt_react ) { )
"emoji": %( json_write_string( f, n->react ); ),
%( } )
"type": "%(
switch(n->type) {
case nt_favorite: fprintf(f,"favourite"); break;
case nt_follow: fprintf(f,"follow"); break;
case nt_like: fprintf(f,"favourite"); break;
case nt_unfollow:
case nt_block:
case nt_mention: fprintf(f,"mention"); break;
case nt_react: fprintf(f,"pleroma:emoji_reaction"); break;
default: fprintf(f,"unknown-%d",n->type); break;
}; )"
}