I am stupid
FossilOrigin-Name: 6eb45682ec5d4f6a7a1f2d6b6f3b07e898f50523c0a1d3c78da69669eeb48a48
This commit is contained in:
parent
57783bd3c7
commit
3ffead15ab
5 changed files with 6 additions and 7 deletions
|
@ -52,7 +52,8 @@ char* read_cookies_env(struct cookie_values* cookies)
|
|||
struct key_value_refs refs[] = {
|
||||
{ "access_token", &(cookies->access_token) },
|
||||
{ "logged_in", &(cookies->logged_in) },
|
||||
{ "theme", &(cookies->theme) }
|
||||
{ "theme", &(cookies->theme) },
|
||||
{ "instance_url", &(cookies->instance_url) }
|
||||
};
|
||||
|
||||
do
|
||||
|
|
|
@ -25,6 +25,7 @@ struct cookie_values
|
|||
char* access_token;
|
||||
char* logged_in;
|
||||
char* theme;
|
||||
char* instance_url;
|
||||
};
|
||||
|
||||
struct http_cookie_info
|
||||
|
|
|
@ -66,8 +66,8 @@ int main(void)
|
|||
char* get_str = read_query_data(&(ssn.query));
|
||||
|
||||
mastodont_t api;
|
||||
if (ssn.post.instance_url)
|
||||
api.url = ssn.post.instance_url;
|
||||
if (ssn.cookies.instance_url)
|
||||
api.url = ssn.cookies.instance_url;
|
||||
else
|
||||
api.url = config_instance_url;
|
||||
mastodont_init(&api, MSTDNT_FLAG_NO_URI_SANITIZE | config_library_flags);
|
||||
|
|
|
@ -86,8 +86,7 @@ char* read_post_data(struct query_values* post)
|
|||
{ "replyid", &(post->replyid) },
|
||||
{ "min_id", &(post->min_id) },
|
||||
{ "max_id", &(post->max_id) },
|
||||
{ "start_id", &(post->start_id) },
|
||||
{ "instance_url", &(post->instance_url) },
|
||||
{ "start_id", &(post->start_id) }
|
||||
};
|
||||
// END Query references
|
||||
|
||||
|
|
|
@ -45,8 +45,6 @@ struct query_values
|
|||
char* min_id;
|
||||
char* max_id;
|
||||
char* start_id;
|
||||
|
||||
char* instance_url;
|
||||
};
|
||||
|
||||
struct get_values
|
||||
|
|
Loading…
Reference in a new issue