|
|
|
@ -85,6 +85,14 @@ success:
|
|
|
|
|
goto cleanup;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
bool handle_scheduled_statuses( struct http_request* req )
|
|
|
|
|
{
|
|
|
|
|
http_request_send_headers( req, 200, "application/json", true );
|
|
|
|
|
FILE* body = http_request_get_response_body( req );
|
|
|
|
|
fprintf( body, "[]" );
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ssize_t getline_stripped( char** restrict lineptr, size_t* restrict n, FILE* restrict stream);
|
|
|
|
|
|
|
|
|
|
bool http_request_write_multipart_to_FILE( struct http_request* req, FILE* f, char** content_type )
|
|
|
|
@ -266,6 +274,8 @@ bool route_mastodon_api( struct http_request* req )
|
|
|
|
|
return true;
|
|
|
|
|
} else if( http_request_route( req, "statuses" ) ) {
|
|
|
|
|
return route_statuses_1f(req);
|
|
|
|
|
} else if( http_request_route_term( req, "scheduled_statuses" ) ) {
|
|
|
|
|
return handle_scheduled_statuses(req);
|
|
|
|
|
} else if( http_request_route( req, "timelines/" ) ) {
|
|
|
|
|
if( http_request_route( req, "home" ) ) {
|
|
|
|
|
return handle_timeline( req, tli_home );
|
|
|
|
|