Fix application reference
FossilOrigin-Name: c081f1008d4593b5f5702b9df8964caf5659a6ec2bac2fadbb235ca55e2cb0ac
This commit is contained in:
parent
c779e32f88
commit
6576135c81
2 changed files with 7 additions and 8 deletions
|
@ -43,7 +43,7 @@ struct mstdnt_status
|
|||
char* spoiler_text;
|
||||
struct mstdnt_attachment* media_attachments;
|
||||
size_t media_attachments_len;
|
||||
struct mstdnt_application application;
|
||||
struct mstdnt_app application;
|
||||
struct mstdnt_status_pleroma pleroma;
|
||||
|
||||
/* Rendering attributes */
|
||||
|
|
|
@ -20,12 +20,6 @@
|
|||
#include <mastodont_query.h>
|
||||
#include <mastodont_request.h>
|
||||
|
||||
void _mstdnt_val_application_call(cJSON* v, void* _type)
|
||||
{
|
||||
struct mstdnt_app* type = _type;
|
||||
mstdnt_app_json(type, v->child);
|
||||
}
|
||||
|
||||
static int mstdnt_app_json(cJSON* json, struct mstdnt_app* app)
|
||||
{
|
||||
/* Zero out */
|
||||
|
@ -75,6 +69,12 @@ static int mstdnt_token_json_callback(cJSON* json, void* args)
|
|||
return mstdnt_token_json(json, args);
|
||||
}
|
||||
|
||||
void _mstdnt_val_application_call(cJSON* v, void* _type)
|
||||
{
|
||||
struct mstdnt_app* type = _type;
|
||||
mstdnt_app_json(type, v->child);
|
||||
}
|
||||
|
||||
int mastodont_register_app(mastodont_t* data,
|
||||
struct mstdnt_args* m_args,
|
||||
struct mstdnt_application_args* args,
|
||||
|
@ -102,7 +102,6 @@ int mastodont_register_app(mastodont_t* data,
|
|||
return mastodont_request(data, m_args, &req_args);
|
||||
}
|
||||
|
||||
|
||||
int mastodont_obtain_oauth_token(mastodont_t* data,
|
||||
struct mstdnt_args* m_args,
|
||||
struct mstdnt_application_args* args,
|
||||
|
|
Loading…
Reference in a new issue