Get chat fixes
FossilOrigin-Name: c643b8176ddd76daafe02a7660fbb1d85ebb8b2a02acf574b2362fb80cf0388d
This commit is contained in:
parent
49fd32c3a7
commit
570bf94ef5
2 changed files with 4 additions and 4 deletions
|
@ -77,6 +77,6 @@ int mastodont_get_chat(mastodont_t* data,
|
|||
struct mstdnt_args* m_args,
|
||||
char* chat_id,
|
||||
struct mstdnt_storage* storage,
|
||||
struct mstdnt_chat chat);
|
||||
struct mstdnt_chat* chat);
|
||||
|
||||
#endif // MASTODONT_CHATS_H
|
||||
|
|
|
@ -177,7 +177,7 @@ int mastodont_get_chat(mastodont_t* data,
|
|||
struct mstdnt_args* m_args,
|
||||
char* chat_id,
|
||||
struct mstdnt_storage* storage,
|
||||
struct mstdnt_chat chat)
|
||||
struct mstdnt_chat* chat)
|
||||
{
|
||||
char url[MSTDNT_URLSIZE];
|
||||
snprintf(url, MSTDNT_URLSIZE, "api/v1/pleroma/chats/%s", chat_id);
|
||||
|
@ -186,12 +186,12 @@ int mastodont_get_chat(mastodont_t* data,
|
|||
.storage = storage,
|
||||
.url = url,
|
||||
.params_query = NULL,
|
||||
.params_query_len = NULL,
|
||||
.params_query_len = 0,
|
||||
.params_post = NULL,
|
||||
.params_post_len = 0,
|
||||
.request_type = CURLOPT_HTTPGET,
|
||||
.request_type_custom = NULL,
|
||||
.args = NULL,
|
||||
.args = chat,
|
||||
.callback = mstdnt_chat_json_callback,
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue