|
|
|
@ -333,7 +333,7 @@ struct json_object_field api_Status_layout[] = {
|
|
|
|
|
.string_callback = render_source_callback,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
.key = "crated_at",
|
|
|
|
|
.key = "created_at",
|
|
|
|
|
.required = true,
|
|
|
|
|
.offset = offsetof( OBJ_TYPE, published ),
|
|
|
|
|
.type = &json_field_date_time
|
|
|
|
@ -462,6 +462,11 @@ void api_Status_write( struct status* s, FILE* f, int indent )
|
|
|
|
|
.indent = indent,
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
if( !s ) {
|
|
|
|
|
fprintf( f, "null" );
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
struct status* system_status = NULL;
|
|
|
|
|
if( s->stub ) {
|
|
|
|
|
system_status = status_new_system_stub( s );
|
|
|
|
|