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.
23 lines
574 B
Plaintext
23 lines
574 B
Plaintext
{
|
|
"account": %( api_account_write_as_json(a,f); ),
|
|
"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); ),
|
|
%( } )
|
|
"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;
|
|
default: fprintf(f,"unknown-%d",n->type); break;
|
|
}; )"
|
|
}
|