FossilOrigin-Name: f629ca882d2efe8f6b169748e36ea9b6fe4d03187abc9e60c0cd6ae50f7ec6cf
This commit is contained in:
nekobit 2023-03-31 03:32:40 +00:00
parent dfd8cfac84
commit 5e5274da26
2 changed files with 8 additions and 7 deletions

View File

@ -30,6 +30,7 @@ local c_files = {
};
-- Not actually real 'pages', but the ones we compile in / create definitions
-- This setup is pretty jank, but it helped me transition the Async refactor
local pages = {
'about.c',
'account.c',
@ -47,11 +48,11 @@ local pages = {
'lists.c',
-- 'login.c',
-- 'memory_page.c',
-- 'notifications.c',
'notifications.c',
-- 'page_config.c',
-- 'scrobble.c',
'scrobble.c',
-- 'search.c',
-- 'status.c',
'status.c',
'timeline.c',
};

View File

@ -447,7 +447,7 @@ int content_account_pinned(PATH_ARGS)
args->max_id = keystr(ssn->post.max_id);
args->min_id = keystr(ssn->post.min_id);
args->limit = 20;
return fetch_account_page(req, ssn, api, data[0], args, ACCT_TAB_PINNED, account_statuses_cb);
}
@ -459,7 +459,7 @@ int content_account_media(PATH_ARGS)
args->max_id = keystr(ssn->post.max_id);
args->min_id = keystr(ssn->post.min_id);
args->limit = 20;
return fetch_account_page(req, ssn, api, data[0], args, ACCT_TAB_MEDIA, account_statuses_cb);
}
@ -469,7 +469,7 @@ request_cb_content_account_action(mstdnt_request_cb_data* cb_data, void* tbargs)
mstdnt_relationship* rel = MSTDNT_CB_DATA(cb_data);
DESTRUCT_TB_ARGS(tbargs);
char* referer = GET_ENV("HTTP_REFERER", req);
redirect(req, REDIRECT_303, referer);
return MSTDNT_REQUEST_DONE;
}
@ -483,7 +483,7 @@ content_account_action(PATH_ARGS)
struct request_args* cb_args =
request_args_create(req, ssn, api, NULL);
if (strcmp(data[1], "follow") == 0)
return mstdnt_follow_account(api, &m_args,
request_cb_content_account_action, cb_args, data[0]);