forked from mirrors/treebird
Timeline error message
FossilOrigin-Name: 4fd42539430a883f70f84c5b887ff005c3d392f7022ae4091beb7caa7b334da0
This commit is contained in:
parent
763655f6a0
commit
17228ed2f2
3 changed files with 5 additions and 3 deletions
1
dist/treebird40.css
vendored
1
dist/treebird40.css
vendored
|
@ -51,6 +51,7 @@ ul
|
|||
|
||||
#main-page
|
||||
{
|
||||
background-color: #fff;
|
||||
width: 1000px;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
|
|
|
@ -31,7 +31,8 @@ char* construct_navigation_box(char* start_id,
|
|||
size_t* size)
|
||||
{
|
||||
char* nav_html;
|
||||
int is_start = strcmp(start_id, prev_id) == 0;
|
||||
|
||||
int is_start = start_id && prev_id ? strcmp(start_id, prev_id) == 0 : 0;
|
||||
|
||||
size_t s = easprintf(&nav_html, data_navigation_html,
|
||||
start_id,
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
|
||||
void tl_public(struct session* ssn, mastodont_t* api, int local)
|
||||
{
|
||||
size_t status_count, statuses_html_count;
|
||||
size_t status_count = 0, statuses_html_count = 0;
|
||||
struct mstdnt_status* statuses = NULL;
|
||||
struct mstdnt_storage storage = { 0 };
|
||||
char* status_format = NULL,
|
||||
|
@ -62,7 +62,7 @@ void tl_public(struct session* ssn, mastodont_t* api, int local)
|
|||
// Construct statuses into HTML
|
||||
status_format = construct_statuses(api, statuses, status_count, &statuses_html_count);
|
||||
if (!status_format)
|
||||
status_format = "Error in malloc!";
|
||||
status_format = construct_error("Couldn't load posts", E_ERROR, 1, NULL);
|
||||
}
|
||||
|
||||
// Create post box
|
||||
|
|
Loading…
Reference in a new issue